diff options
-rw-r--r-- | ReleaseNotes.txt | 3 | ||||
-rw-r--r-- | UnitTesting/GTMIPhoneUnitTestDelegate.m | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index 6c0ae9f..ef9dc49 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -379,6 +379,9 @@ Changes since 1.5.1 turning on the "Show Icon on Menu Items" option in the Xcode Preferences > Google panel. +- iPhone unit tests now print "Test Case '-[TEST SELECTOR]' started." before + each test. + Release 1.5.1 Changes since 1.5.0 diff --git a/UnitTesting/GTMIPhoneUnitTestDelegate.m b/UnitTesting/GTMIPhoneUnitTestDelegate.m index ae77c30..9f2457d 100644 --- a/UnitTesting/GTMIPhoneUnitTestDelegate.m +++ b/UnitTesting/GTMIPhoneUnitTestDelegate.m @@ -91,6 +91,12 @@ = [[currClass alloc] initWithInvocation:invocation]; BOOL failed = NO; NSDate *caseStartDate = [NSDate date]; + NSString *selectorName = NSStringFromSelector([invocation selector]); + NSString *caseStartString + = [NSString stringWithFormat:@"Test Case '-[%@ %@]' started.\n", + fixtureName, selectorName]; + fputs([caseStartString UTF8String], stderr); + fflush(stderr); @try { [testCase performTest]; } @catch (NSException *exception) { @@ -103,7 +109,6 @@ } NSTimeInterval caseEndTime = [[NSDate date] timeIntervalSinceDate:caseStartDate]; - NSString *selectorName = NSStringFromSelector([invocation selector]); NSString *caseEndString = [NSString stringWithFormat:@"Test Case '-[%@ %@]' %@ (%0.3f " @"seconds).\n", |