ExcludeFromCoverage attribute cannot be put on properties
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:
Create a project
Create a class and define a property
public int a { get; set; }
Try to add ExcludeFromCoverage attribute to it
Notice that you cannot as it's only allowed on Assembly, Class, Constructor, Method or Struct.
Reproduced with 2023.2.0a6
Prioritise and Follow this issue
Have a workaround or additional info about this issue?