From b6f7b1b1a2ab5f715f897ea9d26444910b3ed368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Sun, 8 Mar 2020 22:34:04 +0100 Subject: [PATCH] Improve error message on non-enabled JUnit 5 plugin Someone from the mailing list understood that JUnit 5.x satisfies the "JUnit 4.6+" requirement. --- .../org/pitest/coverage/execute/DefaultCoverageGenerator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pitest-entry/src/main/java/org/pitest/coverage/execute/DefaultCoverageGenerator.java b/pitest-entry/src/main/java/org/pitest/coverage/execute/DefaultCoverageGenerator.java index b91be903c..20ed08c7c 100644 --- a/pitest-entry/src/main/java/org/pitest/coverage/execute/DefaultCoverageGenerator.java +++ b/pitest-entry/src/main/java/org/pitest/coverage/execute/DefaultCoverageGenerator.java @@ -138,7 +138,8 @@ private void gatherCoverageData(final Collection 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()) {