com.unity.testtools.codecoverage 1.2.0-exp.7
com.unity.testtools.codecoverage
Notes: processedReleased March 24, 2022
Unity Compatibility
Minimum Unity: 2019.3 (0a8)
Package Dependencies
🔧 Bug Fixes
- Ensure assemblies are removed from the Included Assemblies field if they no longer exist (case 1318668)
- Ensure invalid or hidden sequence points are ignored (case 1372305). Note that this fix is temporarily applied to the Code Coverage package and will be moved to the Coverage API in the engine in the future.
🔄 Changes
- Updated Report Generator to version 4.8.13
- Renamed *assemblyFilters* aliases in batchmode; `` was renamed to `` and `` was renamed to ``.
- Replaced `pathStrippingPatterns` with `pathReplacePatterns` in batchmode. The `pathReplacePatterns` option allows stripping and replacing specific sections from the paths that are stored in the coverage results xml files.
- See the Upgrade guide if upgrading to Code Coverage package version 1.2
📈 Improvements
- The size of the coverage result files and the Code Coverage session duration have been optimized. When more than one coverage xml result files are generated within a Code Coverage session, these files now include only the coverage data of the visited lines. Then, at the end of the session a final coverage xml result file is generated which includes all the lines but with zero coverage.
- Added Help IconButton in the Code Coverage window
- Refactored the Code Coverage window UI to include a new *Report Options* section and removing the word 'Generate' from options
- Introduced new selection buttons under the *Included Assemblies* dropdown in the Code Coverage window; use the *All* button to select all the assemblies in the project. Use the *Assets* button to select only the assemblies under the `Assets` folder. Use the *Packages* button to select only the Packages' assemblies. If searching, the buttons will apply only to the assemblies visible in the list.
- Added What's new and Upgrade guide pages in the documentation
- Added Using relative paths in path filters section in documentation
- Updated documentation to match version 1.2.0-exp.7
✨ Features
- Added `Test Runner References` coverage report option in the Code Coverage window which if checked generates references to tests allowing viewing coverage per test. Note that this option affects Test Runner Coverage sessions only.
- Added `generateTestReferences` in *-coverageOptions* for batchmode which allows viewing coverage per test
- Added `pathFiltersFromFile` in *-coverageOptions* for batchmode which allows specifying an external file which contains a list of path filters. When this file contains relative paths, the `sourcePaths` option can be used to specify the source directories.
- When the `pathFilters` option in *-coverageOptions* contains relative paths, the `sourcePaths` option can be used to specify the source directories.
