Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn on buffered logging by default #400

Merged
merged 1 commit into from
Aug 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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