diff options
Diffstat (limited to 'UnitTesting')
-rw-r--r-- | UnitTesting/GTMIPhoneUnitTestDelegate.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/UnitTesting/GTMIPhoneUnitTestDelegate.m b/UnitTesting/GTMIPhoneUnitTestDelegate.m index 60baa0e..0318073 100644 --- a/UnitTesting/GTMIPhoneUnitTestDelegate.m +++ b/UnitTesting/GTMIPhoneUnitTestDelegate.m @@ -18,6 +18,7 @@ #import "GTMIPhoneUnitTestDelegate.h" +#import "GTMCodeCoverageApp.h" #import "GTMDefines.h" #if !GTM_IPHONE_SDK #error GTMIPhoneUnitTestDelegate for iPhone only @@ -94,6 +95,10 @@ - (void)runTestsAndExit:(UIApplication *)application { [self runTests]; + if ([application respondsToSelector:@selector(gtm_gcov_flush)]) { + [application performSelector:@selector(gtm_gcov_flush)]; + } + if (!getenv("GTM_DISABLE_TERMINATION")) { // To help using xcodebuild, make the exit status 0/1 to signal the tests // success/failure. |