aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2010-01-05 21:34:53 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2010-01-05 21:34:53 +0000
commit31ce8143b3739153e88bd6847e1fbaf7633f6233 (patch)
tree59a06deb64775f7231d370cc955504eb4859b5e8
parenta3bd0d4f83bf1d2c2e6f60b2bd39f22a655711ac (diff)
[Author: dmaclach]
Fix up request that the delegate print case start values. This happens on the 10.6 version of OTest. R=thomasvl DELTA=10 (9 added, 1 deleted, 0 changed)
-rw-r--r--ReleaseNotes.txt3
-rw-r--r--UnitTesting/GTMIPhoneUnitTestDelegate.m7
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",