Reproduction steps:
1. Open the attached project “CodeCoverageBug“
2. Open the Test Runner (Window>General>Test Runner)
3. Press the button “EditMode”
4. Press the button “Run All”
Expected result: Code Coverage Report is generated
Actual result: Error “Failed to generate Code Coverage Report“ is logged in the console window
Reproducible with: 2020.3.47f1, 2021.3.23f1, 2022.2.16f1, 2023.1.0b13, 2023.2.0a11
Reproducible on: Windows 11