Skip to content

Commit

Permalink
Improve error message on non-enabled JUnit 5 plugin
Browse files Browse the repository at this point in the history
Someone from the mailing list understood that JUnit 5.x satisfies
the "JUnit 4.6+" requirement.
  • Loading branch information
szpak committed Mar 8, 2020
1 parent 55efe88 commit b6f7b1b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ private void gatherCoverageData(final Collection<ClassInfo> tests,
final ExitCode exitCode = process.waitToDie();

if (exitCode == ExitCode.JUNIT_ISSUE) {
LOG.severe("Error generating coverage. Please check that your classpath contains JUnit 4.6+ or PIT test plugin for other test tool is enabled.");
LOG.severe("Error generating coverage. Please check that your classpath contains modern JUnit 4 or PIT test plugin for other test tool "
+ "(JUnit 5, TestNG, ...) is enabled.");
throw new PitError(
"Coverage generation minion exited abnormally. Please check the classpath and/or enable test plugin for used test tool.");
} else if (!exitCode.isOk()) {
Expand Down

0 comments on commit b6f7b1b

Please sign in to comment.