dart_dot_reporter 1.0.4 dart_dot_reporter: ^1.0.4 copied to clipboard
Dot test reporter for Dart & Flutter & Human. Makes test results clear from the high-level view.
Dot reporter for Dart/Flutter tests #
Provided to make short and readable test report for your Dart/Flutter projects.
Inspired by dot-reporter.
Best view for CI results review. :)
If you want to use Dot reporter on the command line, install it using pub global activate:
pub global activate dart_dot_reporter # Add $HOME/.pub-cache/bin to your PATH
flutter pub global activate dart_dot_reporter
To update it, use the same pub global activate command.
At first you need to use machine readable reporter, here is example for Dart and Flutter.
pub run test --reporter=json > machine.log || echo 'Tests failed' dart_dot_reporter machine.log
flutter test --machine > machine.log || echo 'Tests failed' flutter pub global run dart_dot_reporter machine.log
dart_dot_reporter <machine.log> [flags]
NOTE: Path to log file is required as first argument.
You can use one of next flags after path:
|-h||To get help. More info can be found on GitHub.|
|--hide-skip||To hide output about skipped tests.|
|--show-success||To show output about successfull tests.|
|--show-id||To show id of the test from Machine log.|
|--show-message||To show error message of the failed test.|
|--no-color||To disable colors.|
|--fail-skipped||Return exit code 1 if has skipped tests.|
Known issues #
- If test starts with 'loading /' it will be skipped in report.
- Count time of execution, and display most slow tests
- Support tool run as a pipe like
pub run test --reporter=json | dart_dot_reporter
Run the app using
Created from templates made available by Stagehand under a BSD-style license.