You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jonathan Miller 00e4582c08 Plugins system 3 years ago
..
Asteroids Plugins system 3 years ago
.sample.json Plugins system 3 years ago
.sample.json.meta Plugins system 3 years ago
Asteroids.meta Plugins system 3 years ago
README.md Plugins system 3 years ago
README.md.meta Plugins system 3 years ago
Worksheet.pdf Plugins system 3 years ago
Worksheet.pdf.meta Plugins system 3 years ago

README.md

Code Coverage Tutorial

The Code Coverage Tutorial will give you an insight into what Code Coverage is and how you can identify areas of your code that need more testing, even if you haven't written any automated tests. It takes about 30 minutes to complete.

To start open the Worksheet pdf file located under the Code Coverage Tutorial folder, and work through the tasks.

Tutorial tasks

  • What is Code Coverage (2 min)
  • Install the Code Coverage package (2 min)
  • Enable Code Coverage (1 min)
  • Understanding the game code: Shoot() function (4 min)
  • Generate a Coverage report from PlayMode tests (3 min)
  • Add Weapon tests to improve coverage (3 min)
  • Add a test for the LaserController (4 min)
  • Clear the coverage data (1 min)
  • Generate a Coverage report using Coverage Recording (4 min)

For questions and feedback please reach out to us in the dedicated Code Coverage package forum thread: https://forum.unity.com/threads/code-coverage-package.777542