Skip to content

Commit

Permalink
Turn on buffered logging by default (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshalm authored Aug 9, 2021
1 parent 28d696b commit 61da011
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 61da011

Please sign in to comment.