Search Issue Tracker

Active

Under Consideration for 1.0.X, 1.1.X, 1.2.X

Votes

0

Found in [Package]

1.2.0

Issue ID

COV-19

Regression

No

Code Coverage marks static variables as unused when they are used

Package: Code Coverage

-

How to reproduce:
1. Open the attached "1427735_Repro.zip" project
2. Open the Scene "SampleScene"
3. Open the Code Coverage (Window->Analysis->Code Coverage)
4. In Code Coverage press "Start Recording"
5. Enter the Play Mode
6. In Code Coverage press "Stop Recording"
7. Open the "index.htm" file (windows explorer pointing to it should've opened automatically after the recording was stopped in CodeCoverage/Report location)
8. In the Coverage section select Assembly-C Sharp->NewbehaviourScript

Expected results: Under the File section, the 7th line is marked green
Actual results: Under the File section, the 7th line is marked red

Reproducible with: 1.0.0, 1.1.1 (2019.4.40f1, 2020.3.36f1, 2021.3.4f1, 2022.1.6f1, 2022.2.0a17

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.