?????????????????????в????????IOS?μ?????????????????????е??????xcode?????OCUnit??GHUnit???????????GHUnit????????OCUnit??GHUnit?????????????
????1????????
????2?????????????????????????????
????3???????????
????4????????????
????5???????????????UI??Command Line??
?????????????£?http://gabriel.github.io/gh-unit/
????GitHub????????https://github.com/gabriel/gh-unit
???????????????????????????
??????????????
????1??xcode??????Command Line???????simulator
????2?????????????????http://www.apkbus.com/android-465-1.html?з???????
????3??????GHUnit????????Example/MyTestable-iOS?????GHUnitiOS.framework
??????????????
????1.??????????????? GHUnitTest ??Empty Application??????????? Include Unit Tests?? Use Core Data
????2.????μ? test target????????? Add Target????????????Test ?? Empty Application?????麗????GHUnitTest??????????? Include Unit Tests ?? Use Core Data
????3.?? Test??? GHUnitIOS Framework??????????е? Frameworks????? Add Files to...??????? GHUnitIOS.framework??targets ????Test
????4.???? Test?? Build Settings???? Other Linker Flags ?????????? flag?? -ObjC ?? -all_load
????5.??? Test?μ? AppDelegate.h ?? AppDelegate.m ??????????????GHUnitTest??
????6.????????? Test>iPhone 6.1Simulator?????????У????????????Ч?????????????б?д?κ?????????????б?????
??????????д???????
????1.?? Test ?????????? Objective C class???????????GHTestCase??????д??????????????????????AccessTest.m???????????

 

#import "Test-Prefix.pch"
@interface AccessTest : GHTestCase
@end
@implementation AccessTest
- (void)setUpClass{
GHTestLog(@"Test Starts");
}
- (void)tearDownClass{
GHTestLog(@"Test ends");
}
-(void)tearDown{
[NSThread sleepForTimeInterval:1];
}
- (void)testOne{
GHTestLog(@"app starts first");
}
-(void)testTwo{    [
GHTestLog(@"app starts sencond");
}
@end