maven-surefire-junit5-tree-reporter icon indicating copy to clipboard operation
maven-surefire-junit5-tree-reporter copied to clipboard

Initialization error corrupts output

Open alpert opened this issue 2 years ago • 0 comments

Hey,

in case of following error:

[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.004 s <<< FAILURE! - in com.faceit.hubs.model.entities.competition.SomeTest
[ERROR] initializationError  Time elapsed: 0.004 s  <<< ERROR!
org.junit.runners.model.InvalidTestClassError:
Invalid test class 'com.faceit.hubs.model.entities.competition.SomeTest':
  1. Method shouldBeOk should have no parameters

the output looks as follows:

[INFO] ├─ initializationError - 0.003s
[INFO] │  └─ ✘ null - 0.001s

Shows error name instead of test name.

alpert avatar Oct 26 '22 15:10 alpert