This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
ARPlusSystem/ARPlusSystem-250418/Library/PackageCache/com.unity.testtools.codecov.../Samples~/Tutorial
GuanYuankai 15b5ac4e1f 更新所有meta文件,和vscode设置 2025-04-28 09:24:41 +08:00
..
Asteroids 更新所有meta文件,和vscode设置 2025-04-28 09:24:41 +08:00
.sample.json 更新所有meta文件,和vscode设置 2025-04-28 09:24:41 +08:00
.sample.json.meta 更新所有meta文件,和vscode设置 2025-04-28 09:24:41 +08:00
Asteroids.meta 更新所有meta文件,和vscode设置 2025-04-28 09:24:41 +08:00
README.md 更新所有meta文件,和vscode设置 2025-04-28 09:24:41 +08:00
README.md.meta 更新所有meta文件,和vscode设置 2025-04-28 09:24:41 +08:00
Worksheet.pdf 更新所有meta文件,和vscode设置 2025-04-28 09:24:41 +08:00
Worksheet.pdf.meta 更新所有meta文件,和vscode设置 2025-04-28 09:24:41 +08:00

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 visit the Testing & Automation forum section to browse current conversations or start a new thread. Please use the code coverage tag.