diff --git a/docs/tests.md b/docs/tests.md index 6c1a4808..10bbde94 100644 --- a/docs/tests.md +++ b/docs/tests.md @@ -118,12 +118,12 @@ parallel test suite execution in sbt, add the following setting to `build.sbt`. Test / parallelExecution := false ``` -In case you do run your tests in parallel, you might also want to enable buffered logging, -so that the test results of multiple suites do not appear interleaved. -In contrast to other test frameworks, buffered logging is not the default in munit. +In case you do not run your tests in parallel, you can also disable buffered logging, +which is on by default to prevent test results of multiple suites from appearing interleaved. +Switching buffering off would give you immediate feedback on the console while a suite is running. ```sh -Test / testOptions += Tests.Argument(TestFrameworks.MUnit, "+b") +Test / testOptions += Tests.Argument(TestFrameworks.MUnit, "-b") ``` To learn more about sbt test execution, see diff --git a/junit-interface/src/main/java/munit/internal/junitinterface/JUnitRunner.java b/junit-interface/src/main/java/munit/internal/junitinterface/JUnitRunner.java index 00c94437..e9b5242e 100644 --- a/junit-interface/src/main/java/munit/internal/junitinterface/JUnitRunner.java +++ b/junit-interface/src/main/java/munit/internal/junitinterface/JUnitRunner.java @@ -35,7 +35,7 @@ final class JUnitRunner implements Runner { Settings defaults = Settings.defaults(); boolean quiet = false, nocolor = false, decodeScalaNames = false, - logAssert = true, logExceptionClass = true, useSbtLoggers = false, useBufferedLoggers = false; + logAssert = true, logExceptionClass = true, useSbtLoggers = false, useBufferedLoggers = true; boolean verbose = false; boolean suppressSystemError = false; boolean trimStackTraces = defaults.trimStackTraces();