Search Issue Tracker
Active
Votes
0
Found in
2019.4
2020.3
2020.3.19f1
2021.2
2022.1
Issue ID
1382177
Regression
No
Coverage API returns wrong file path for fields in partial class that are declared with an initial value
Steps to reproduce:
1. Open attached project partial-class-cov-issue.zip
2. Open Test Runner
3. Run the only test in the project
4. Open partial-class-cov-issue/CodeCoverage/partial-class-cov-issue-opencov/PlayMode/TestCoverageResults_0000.xml
5. Notice that it only references one file even though class is split into two files - ChordData.Conversions.cs and GeneratedModels.cs
Issue happens if field is declared like this:
public string _field = string.Empty;
Filename returned by coverage api is the one which has the constructor even thought field is declared in a different file.
Reproduced with: 2019.4.31f1, 2020.3.21f1, 2021.2.1f1, 2022.1.0a12
Package version: 1.1.0, 1.2.0-exp.5
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Build for iOS with UnityAds fails with linker failures when performing a CocoaPods build
- NavMeshManager.LoadData takes a long time and causes performance spikes when enabling a NavMeshSurface with already instantiated NavMeshLinks
- Shadows created by real-time Spotlights are rendered at a very low resolution on terrain when HDRPAsset Lit Shader Mode is set to Forward or Both
- “STP” in Project window > Advanced Upscalers by Priority menu list is shown as available to add when it is already added to the list
- Rename fails with an error “Canceling DisplayDialog” when renaming a Mipmap Limit Group in Project Settings > Quality after adding a new group
Add comment