diff options
Diffstat (limited to 'UnitTesting/GTMIPhoneUnitTestDelegate.h')
-rw-r--r-- | UnitTesting/GTMIPhoneUnitTestDelegate.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/UnitTesting/GTMIPhoneUnitTestDelegate.h b/UnitTesting/GTMIPhoneUnitTestDelegate.h index f12a9b6..4583b5d 100644 --- a/UnitTesting/GTMIPhoneUnitTestDelegate.h +++ b/UnitTesting/GTMIPhoneUnitTestDelegate.h @@ -21,11 +21,18 @@ // Application delegate that runs all test methods in registered classes // extending SenTestCase. The application is terminated afterwards. // You can also run the tests directly from your application by invoking -// gtm_runTests and clean up, restore data, etc. before the application +// runTests and clean up, restore data, etc. before the application // terminates. -@interface GTMIPhoneUnitTestDelegate : NSObject +@interface GTMIPhoneUnitTestDelegate : NSObject { + @private + NSUInteger totalFailures_; + NSUInteger totalSuccesses_; +} // Runs through all the registered classes and runs test methods on any // that are subclasses of SenTestCase. Prints results and run time to // the default output. - (void)runTests; +// Fetch the number of successes or failures from the last runTests. +- (NSUInteger)totalSuccesses; +- (NSUInteger)totalFailures; @end |