Code coverage allows you to see how much of your code is being executed during unit tests, so you can understand how effective these tests are. AppCode uses llvm-cov for gathering the coverage data.
The coverage measurement results comprise a coverage suite. You can have the results of a new simulation merged with any existing suite. In this case, a line will be considered covered if it is covered by at least one of the simulations.
Run with code coverage
General steps for using code coverage in a project
Specify how you want to process the coverage results.
Create tests for the target code.
Run with coverage, using the dedicated command from the main menu , or click the Run with Coverage button ().
Once the run with coverage has been executed, you can perform the following actions: