aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting/GTMCodeCoverageApp.h
diff options
context:
space:
mode:
Diffstat (limited to 'UnitTesting/GTMCodeCoverageApp.h')
-rw-r--r--UnitTesting/GTMCodeCoverageApp.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/UnitTesting/GTMCodeCoverageApp.h b/UnitTesting/GTMCodeCoverageApp.h
index 32c92c6..a487d40 100644
--- a/UnitTesting/GTMCodeCoverageApp.h
+++ b/UnitTesting/GTMCodeCoverageApp.h
@@ -22,8 +22,19 @@
#import <UIKit/UIKit.h>
+
+// Add GTM_IS_COVERAGE_BUILD to your GCC_PREPROCESSOR_DEFINITIONS for the
+// Xcode Configuration that wants CodeCoverage support.
+#ifndef GTM_IS_COVERAGE_BUILD
+#define GTM_IS_COVERAGE_BUILD 0
+#endif
+
// If you are using this with XCTest (as opposed to SenTestingKit)
// make sure to define GTM_USING_XCTEST.
+#ifndef GTM_USING_XCTEST
+#define GTM_USING_XCTEST 0
+#endif
+
#define GTMXCTestObserverClassKey @"XCTestObserverClass"
#define GTMXCTestLogClass @"XCTestLog"