Search Issue Tracker
Active
Under Consideration for 1.0.X, 1.1.X, 1.2.X
Votes
0
Found in [Package]
1.0.0
1.1.1
Issue ID
COV-1
Regression
No
Coverage does not cover some lines when executed code path throws an exception
Reproduction steps:
1. Open user attached Project
2. Open Window > General > Test Runner
3. Run All Playmode tests
4. Open Window > Analysis > Code Coverage
5. Generate From Last
6. Open Tests_TestATest.html
Actual result: Line 17 and 34 are marked as uncovered. Line 25 is marked as uncoverable
Note: This is an expected behaviour. Since method throws an exception, it exists out early and curly brackets at the end will show up as not covered. A more detailed explanation will be added to code coverage docs.
Reproducible with: preview-0.3.1, preview-0.4.3 (2019.4.24f1, 2020.3.5f1) 1.0.0 (2019.4.24f1, 2020.3.5f1, 2021.1.3f1, 2021.2.0a14)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Add comment