IOS6.1?????????????????
???????????? ???????[ 2013/12/12 11:15:02 ] ????????
?????????????????????胁????????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
|
??????

???路???
??????????????????
2023/3/23 14:23:39???写?貌??????????
2023/3/22 16:17:39????????????????????些??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???路???????路
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11