iOS XCTest framework - Unit Testing Start Testing

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9

Example

Testing a specific method

To test a specific method, click the square next to the method definition.

Testing all methods

To test all methods, click the square next to the class definition.

See the testing result

If there is a green check next to the definition, the test has succeeded.

enter image description here

If there is a red cross next to the definition, the test has failed.

enter image description here

Running all tests

Product -> Test OR Cmd + U

It will run all the tests from all the test targets!



Got any iOS Question?