iOS XCTest framework - Unit Testing Start Testing

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

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?