Systers Community

Powerup-iOS: Add unit tests

Prerequisite:

Complete "Setup PowerUp iOS project" task.

Steps:

  • Research how to run unit tests in Xcode.
  • Research how to enable code coverage in Xcode.
  • Run the Powerup-iOS unit tests and look at the unit test code coverage report.
  • Write 1 unit test for each of 5 Swift classes whose test coverage in the report is less than 70%. (Total of 5 new unit tests)

Resources:

Work Submission:

Submit a screenshot of the code coverage report (with date and time showing) resulting from a test run before you add new unit tests. Submit a screenshot of the final code coverage report (with date and time showing) after you have added the 5 unit tests. Create and submit a PR of your unit tests and post the PR link here.

Task tags

  • systers
  • powerup
  • ios
  • testing

Students who completed this task

Erika Tan

Task type

  • code Code
  • done_all Quality Assurance
close

2017