Test cases code coverage in Xcode


How to check what percentage of unit test cases cover your classes/framework/project:-
  1. After writing unit test cases, make sure your all test cases run successfully. To cross check this, Goto Product menu->Perform action-> Test without building
  2. Goto Edit scheme: Select Test and select the "Gather coverage data" option.
  3. To see the code coverage, perform step no 1 once again.
  4. Open the last tab(report navigator) on the left panel.
  5. Open the coverage tab(at the top panel)

Popular posts from this blog

Play youtube video in iOS app

Disabling print for Production In Swift Project