diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2014-06-02 16:30:07 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2014-06-02 16:30:07 +0000 |
commit | 4ca2ed5f9eaf1a7e1b0d09044c5d27484266ab8e (patch) | |
tree | 93aaae7ca57b552d3b7b67733a7cab2d0dc7260e /GTMDefines.h | |
parent | 7652afc74f51fa3c4f4b56898c2e14fce157af5f (diff) |
Add support for XCTest (as opposed to OCUnit) to GTM. Define GTM_USING_XCTEST to 1 to use it.
DELTA=486 (352 added, 0 deleted, 134 changed)
DELTA_BY_EXTENSION=h=467,m=15,mm=1,txt=3
Diffstat (limited to 'GTMDefines.h')
-rw-r--r-- | GTMDefines.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/GTMDefines.h b/GTMDefines.h index c24053e..6695119 100644 --- a/GTMDefines.h +++ b/GTMDefines.h @@ -223,9 +223,17 @@ // By default, GTM has provided it's own unittesting support, define this // to use the support provided by Xcode, especially for the Xcode4 support // for unittesting. + // This is going to be deprecated as Apple is deprecating SenTest. #ifndef GTM_IPHONE_USE_SENTEST #define GTM_IPHONE_USE_SENTEST 0 #endif + // Define this to use XCTest instead of OCUnit/SenTest. + #ifndef GTM_USING_XCTEST + #define GTM_USING_XCTEST 0 + #endif + #if GTM_IPHONE_USE_SENTEST && GTM_USING_XCTEST + #error Can't define both GTM_IPHONE_USE_SENTEST and GTM_USING_XCTEST + #endif #define GTM_MACOS_SDK 0 #else // For MacOS specific stuff @@ -234,6 +242,7 @@ #define GTM_IPHONE_SIMULATOR 0 #define GTM_IPHONE_DEVICE 0 #define GTM_IPHONE_USE_SENTEST 0 + #define GTM_USING_XCTEST 0 #endif // Some of our own availability macros |