oravecz
oravecz

Reputation: 1206

Prevent Dart tests from logging every second

I'd prefer that Dart not log the current test description every second the test is under execution. If some test takes 5 seconds, Dart is logging the test description 5 times.

I would prefer the logging only represent the one time the test is attempted to be executed.

This is such strange default behavior when compared to other test suites, but I can't find anyone talking about the problem or offering solutions.

Upvotes: 2

Views: 40

Answers (1)

oravecz
oravecz

Reputation: 1206

Apologies for answering my own question. Reporters (not logging) is the key search term.

There are four reporters available in the default Dart test package. You set the reporter by adding the --reporter <reporter_name> flag on the test command line.

https://github.com/dart-lang/test#selecting-a-test-reporter

The default is "compact" which logs continuously. The one I want to use is called "expanded".

Upvotes: 2

Related Questions