diff --git a/habushu-maven-plugin/src/main/java/org/technologybrewery/habushu/BehaveBddTestMojo.java b/habushu-maven-plugin/src/main/java/org/technologybrewery/habushu/BehaveBddTestMojo.java index 74a31c9..9776238 100644 --- a/habushu-maven-plugin/src/main/java/org/technologybrewery/habushu/BehaveBddTestMojo.java +++ b/habushu-maven-plugin/src/main/java/org/technologybrewery/habushu/BehaveBddTestMojo.java @@ -116,6 +116,7 @@ public void doExecute() throws MojoExecutionException, MojoFailureException { poetryHelper.installDevelopmentDependency(BEHAVE_CUCUMBER_FORMATTER); executeBehaveTestArgs.add("--format=behave_cucumber_formatter:PrettyCucumberJSONFormatter"); executeBehaveTestArgs.add("--outfile=target/cucumber-reports/cucumber.json"); + executeBehaveTestArgs.add("--format=progress2"); } if (omitSkippedTests) { diff --git a/habushu-maven-plugin/src/main/java/org/technologybrewery/habushu/exec/ProcessExecutor.java b/habushu-maven-plugin/src/main/java/org/technologybrewery/habushu/exec/ProcessExecutor.java index fffa1fd..7dbb3b5 100644 --- a/habushu-maven-plugin/src/main/java/org/technologybrewery/habushu/exec/ProcessExecutor.java +++ b/habushu-maven-plugin/src/main/java/org/technologybrewery/habushu/exec/ProcessExecutor.java @@ -177,6 +177,7 @@ private static class LoggerOutputStream extends LogOutputStream { private static final String WARNING_LOG = "WARNING"; private static final String ERROR_LOG = "ERROR"; private static final String CRITICAL_LOG = "CRITICAL"; + private static final String FAILURE_LOG = "FAILURE"; LoggerOutputStream(Logger logger, int logLevel) { super(logLevel); @@ -190,11 +191,12 @@ public final void flush() { @Override protected void processLine(final String line, final int logLevel) { - if (line.toUpperCase().contains(ERROR_LOG) || line.toUpperCase().contains(CRITICAL_LOG)) { + final String upperLine = line.toUpperCase(); + if (upperLine.contains(ERROR_LOG) || upperLine.contains(CRITICAL_LOG) || upperLine.contains(FAILURE_LOG)) { logger.error(line); - } else if (line.toUpperCase().contains(WARNING_LOG)) { + } else if (upperLine.contains(WARNING_LOG)) { logger.warn(line); - } else if (line.toUpperCase().contains(DEBUG_LOG)) { + } else if (upperLine.contains(DEBUG_LOG)) { logger.debug(line); } else { logger.info(line);