Add file-based reporter support (#1129)
Add support for writing any reporter output to a file in addition to the reporter on `stdout`. The `json` reporter is the primary use case. Adds a `--file-reporter` CLI argument, and `file_reporters` yaml config option. - Add a `MultiplexingReporter` to allow wiring up multiple reporters to listen at once. - Plumb through the configuration mapping a reporter to a file path. - Instantiate each file reporter with a sink from the file instead of the normal `stdout`.
Showing
- pkgs/test/CHANGELOG.md 2 additions, 0 deletionspkgs/test/CHANGELOG.md
- pkgs/test/doc/configuration.md 13 additions, 0 deletionspkgs/test/doc/configuration.md
- pkgs/test/doc/json_reporter.md 5 additions, 0 deletionspkgs/test/doc/json_reporter.md
- pkgs/test/test/io.dart 5 additions, 3 deletionspkgs/test/test/io.dart
- pkgs/test/test/runner/configuration/configuration_test.dart 8 additions, 0 deletionspkgs/test/test/runner/configuration/configuration_test.dart
- pkgs/test/test/runner/configuration/top_level_error_test.dart 45 additions, 0 deletions.../test/test/runner/configuration/top_level_error_test.dart
- pkgs/test/test/runner/json_file_reporter_test.dart 149 additions, 0 deletionspkgs/test/test/runner/json_file_reporter_test.dart
- pkgs/test/test/runner/json_reporter_test.dart 210 additions, 410 deletionspkgs/test/test/runner/json_reporter_test.dart
- pkgs/test/test/runner/json_reporter_utils.dart 221 additions, 0 deletionspkgs/test/test/runner/json_reporter_utils.dart
- pkgs/test/test/runner/runner_test.dart 3 additions, 0 deletionspkgs/test/test/runner/runner_test.dart
- pkgs/test_core/CHANGELOG.md 2 additions, 0 deletionspkgs/test_core/CHANGELOG.md
- pkgs/test_core/lib/src/runner.dart 27 additions, 3 deletionspkgs/test_core/lib/src/runner.dart
- pkgs/test_core/lib/src/runner/configuration.dart 9 additions, 0 deletionspkgs/test_core/lib/src/runner/configuration.dart
- pkgs/test_core/lib/src/runner/configuration/args.dart 20 additions, 0 deletionspkgs/test_core/lib/src/runner/configuration/args.dart
- pkgs/test_core/lib/src/runner/configuration/load.dart 16 additions, 0 deletionspkgs/test_core/lib/src/runner/configuration/load.dart
- pkgs/test_core/lib/src/runner/plugin/platform_helpers.dart 2 additions, 1 deletionpkgs/test_core/lib/src/runner/plugin/platform_helpers.dart
- pkgs/test_core/lib/src/runner/reporter/multiplex.dart 32 additions, 0 deletionspkgs/test_core/lib/src/runner/reporter/multiplex.dart
Loading
Please register or sign in to comment