test_reporter 1.3.0 copy "test_reporter: ^1.3.0" to clipboard
test_reporter: ^1.3.0 copied to clipboard

CLI Utility to wrap dart tests with reporter plugins. Extend to any report formats with special TestReporter class.

example/README.md

Test Reporter - Usage example #

Example with Allure Report Adapter #

  1. Add allure_report and test_reporter to your dependencies.
dev_dependencies:
  # reporter
  allure_report: ^1.0.0
  test_reporter: ^1.0.0
  1. Create reporter.dart in test directory. If no file created, Basic Console Reporter will be used.
import 'package:allure_report/allure_report.dart';
import 'package:test_reporter/test_reporter.dart';

TestReporter create() {
  return AllureReporter();
}
  1. Run test_reporter command with your tests
dart run test_reporter -- dart test
dart run test_reporter -- flutter test

Output #

Allure results are placed in allure-results folder in project root folder.

Proceed to Allure / How to view a report

2
likes
160
points
662
downloads

Publisher

unverified uploader

Weekly Downloads

CLI Utility to wrap dart tests with reporter plugins. Extend to any report formats with special TestReporter class.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

ansicolor, args, freezed_annotation, path, universal_io, uuid

More

Packages that depend on test_reporter