Skip to content

Commit

Permalink
Merge pull request #745 from szpak/noPluginMessage2
Browse files Browse the repository at this point in the history
Improve error message on non-enabled JUnit 5 plugin
  • Loading branch information
hcoles authored Mar 9, 2020
2 parents 55efe88 + b6f7b1b commit 561d240
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 561d240

Please sign in to comment.