Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding new test with SenTestCase (new test not showing up in manage scheme)

So I'm trying out this new TDD thing (about time haha). Anyways I have two unit testing files currently one for application and one for logic. The application logic test was autogenerated by xcode and when I go to manage schemes I can see the (void)testExample but I can't see the other tests I have created in my logic file, nor are they being run. Attaching picture.enter image description here

like image 984
Msencenb Avatar asked Mar 22 '12 02:03

Msencenb


1 Answers

Well it would help to read the docs a bit more carefully: http://developer.apple.com/library/ios/#documentation/DeveloperTools/Conceptual/UnitTesting/03-Writing_Test_Case_Methods/writing_tests.html#//apple_ref/doc/uid/TP40002143-CH4-SW1

You just have to prepend your methods with 'test'.

i.e.

-(void)testmynewcase {

}
like image 105
Msencenb Avatar answered Oct 12 '22 23:10

Msencenb