diff --git a/hapi-fhir-cli/hapi-fhir-cli-api/src/main/java/ca/uhn/fhir/cli/BaseApp.java b/hapi-fhir-cli/hapi-fhir-cli-api/src/main/java/ca/uhn/fhir/cli/BaseApp.java index 59fac0dc541..8b904feddee 100644 --- a/hapi-fhir-cli/hapi-fhir-cli-api/src/main/java/ca/uhn/fhir/cli/BaseApp.java +++ b/hapi-fhir-cli/hapi-fhir-cli-api/src/main/java/ca/uhn/fhir/cli/BaseApp.java @@ -185,7 +185,9 @@ public abstract class BaseApp { loggingConfigOff(); validateJavaVersion(); - AnsiConsole.systemInstall(); + if (System.getProperty("unit_test") != null) { + AnsiConsole.systemInstall(); + } // log version while the logging is off VersionUtil.getVersion();