How it works
The package is a client of the coverage API that was added to Unity 2019.2. For more information, see the coverage API's documentation. The package uses a combination of this API and C# reflection to output the test coverage data in the OpenCover format. Optionally, a third party report generator will then parse the OpenCover data and present the coverage data as a series of html documents.
This version of Code Coverage is compatible with the following versions of the Unity Editor:
- 2019.3 and later
3rd party libraries used
- ReportGenerator - v4.3.6
Code Coverage includes the following known limitations:
- Code Coverage currently supports only the OpenCover format.
- NPath Complexity and Crap Score calculations are not implemented at present so they will always appear as zero in the coverage report.