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:
- Powerup iOS repository
- Sample tutorial on iOS unit testing
- Ask any questions or directions in the #powerup channel on Systers Open Source Slack.
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
Students who completed this task
Erika Tan