Unity Issue Tracker - ExcludeFromCodeCoverage put on properties does not exclude field initialisation part from code coverage results
Open
UUM-58424
ExcludeFromCodeCoverage put on properties does not exclude field initialisation part from code coverage results
Unity: Code Coverage
Code Coverage
Won't Fix
6.7.X
6.6.X
6.5.X
6.4.X
6.3.X
6.2.X
6.1.X
6.0.X
2023.3.X
2023.2.X
2021.3.X
Unity 6000.2 has reached its end of life and will not receive further updates. If you need additional fixes, please upgrade to a newer Unity version.
Cancelling: the 6000.1 version has reached its end of life. If you need additional fixes, please upgrade to a newer Unity version.
Cancelling this 2023.2 tech release issue since the support for this release has come to end of life. Cancelling this 2023.2 port case does not affect any LTS or Unity 6 Beta/Preview that remain open.
Unity 2021.3 has reached its end of life and will not receive further updates. If you need additional fixes, please upgrade to a newer Unity version.
Steps to reproduce:
Open attached project cov-statics 2.zip
Install code coverage package if needed
Open test runner and run editor test
Open generate coverage report
Notice that Line = new Vector3(1, 2, 3); shows up as covered even though property has ExcludeFromCodeCoverage attribute
Reproduced with: 1.2.2
Prioritise and Follow this issue
Have a workaround or additional info about this issue?