Adding a new test using SenTestCase (the new test is not displayed in the control circuit)

So, I am testing this new TDD thing (about time haha). In any case, I have two file testing modules that are currently used for the application, and one for the logic. An application logic test was autogenerated by xcode, and when I go to manage the circuits, I can see the (void) testExample, but I do not see the other tests that I created in my logical file, and they do not start. Attaching an image. enter image description here

+6
source share
1 answer

Well, this would help to read the documents more carefully: http://developer.apple.com/library/ios/#documentation/DeveloperTools/Conceptual/UnitTesting/03-Writing_Test_Case_Methods/writing_tests.html#//apple_ref/doc/uid/TP4000214 -CH4-SW1

You just need to add your methods using 'test'.

i.e.

-(void)testmynewcase { } 
+8
source

Source: https://habr.com/ru/post/911373/


All Articles