サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
Pixel 9
gabriel.github.io
Create a Test Command click on the Tests folder and select: New File… Select Objective-C class (iOS, Cocoa Touch or Mac OS X, Cocoa) and select Next. Leave the default subclass and select Next again. Name the file MyTest.m and make sure its enabled only for the “Tests” target. Delete the MyTest.h file and update the MyTest.m file. #import <GHUnitIOS/GHUnit.h> @interface MyTest : GHTestCase { } @en
Overview The base class for a test case. @interface MyTest : GHTestCase {} @end @implementation MyTest // Run before each test method - (void)setUp { } // Run after each test method - (void)tearDown { } // Run before the tests are run for this class - (void)setUpClass { } // Run before the tests are run for this class - (void)tearDownClass { } // Tests are prefixed by 'test' and contain no argumen
GHUnit is a test framework for Objective-C (Mac OS X 10.5 and above and iPhone 3.x and above). It can be used with SenTestingKit, GTM or all by itself. For example, your test cases will be run if they subclass any of the following: GHTestCase SenTestCase GTMTestCase Using GHUnit How to install, create and run tests. Other Links GHUnit on github Online documentation Install (Docset) Open Xcode, Pre
このページを最初にブックマークしてみませんか?
『gabriel.github.io』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く