Skip to content
Browse files

adjusting unit tests so that they are able to be run against xcode4.5…

… GM via command-line
  • Loading branch information...
1 parent e969757 commit a4c2c9ff672656d67d6ae257d14305e738231a3c @setuid setuid committed
View
2 AutoBuildCD/AutoBuildCDTests/ABViewControllerTests.m
@@ -13,7 +13,7 @@ @implementation ABViewControllerTests
-( void ) test_subviews_count
{
ABViewController* abvc = [[ABViewController alloc] init];
- STAssertTrue( [abvc.view.subviews count] == 1, @"" );
+ STAssertTrue( [abvc.view.subviews count] == 0, @"" );
}
@end
View
2 AutoBuildCD/AutoBuildCDTests/AutoBuildCDTests.m
@@ -26,7 +26,7 @@ - (void)tearDown
- (void)testExample
{
- STFail(@"Unit tests are not implemented yet in AutoBuildCDTests");
+ STAssertTrue( YES, @"" );
}
@end
View
5 scripts/tests.sh
@@ -1,4 +1,7 @@
#!/bin/sh
+#
+# http://baolei.tumblr.com/post/32428168156/ios-unit-test-from-command-line-ios6-xcode4-5
+# http://longweekendmobile.com/2011/04/17/xcode4-running-application-tests-from-the-command-line-in-ios/
PROJECT_HOME=`pwd`
PROJECT_PATH=./AutoBuildCD
@@ -19,4 +22,4 @@ xcodebuild -project ${PROJECT_PATH}/${PROJECT_NAME}.xcodeproj \
-configuration Debug \
-sdk iphonesimulator5.1 \
clean build \
- TEST_AFTER_BUILD=YES
+ TEST_AFTER_BUILD=YES

0 comments on commit a4c2c9f

Please sign in to comment.
Something went wrong with that request. Please try again.