This affects both IntelliJ 2019.3 and 2020.1 (latest as of this post) Ultimate Editions.
Code coverage is missing for some classes, while other classes continue to show coverage. Stating the obvious, but the classes that do not show coverage data in fact should show it because those lines are hit by the tests.
Error that is seen is:
[2020.04.23 23:52:20] (Coverage): Error during class instrumentation: com.<redacted>: java.lang.ArrayIndexOutOfBoundsException: 113
[2020.04.23 23:52:20] (Coverage): Error during class instrumentation: com.<redacted>: java.lang.ArrayIndexOutOfBoundsException: 144
Note that the redacted part is the actual fully qualified class path. The tests execute correctly, but the coverage data is missing.
I have ensured that the tests are set up for coverage correctly:
- Coverage runner is IntelliJ IDEA
- Packages and classes to include in coverage data are accurate
Does anybody know how to get past this so that the missing classes show coverage info?
(Coverage): Error during class instrumentation: com.<redacted>: java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 14
– Oaken