dart_test_adapter 0.1.0 copy "dart_test_adapter: ^0.1.0" to clipboard
dart_test_adapter: ^0.1.0 copied to clipboard

retractedoutdated

Provides a Dart API for interacting with `dart test`/`flutter test` programatically

Dart test adapter

A package for executing `dart test`/`flutter test` using plain Dart code

Melos docs.page

License

dart_test_adapter revolves two functions:

dartTest();
flutterTest();

These functions respectively execute dart test or flutter test.

Both functions return a Stream of events representing the Dart Test protocol.

As such, it is possible to write code like:

dartTest()
    .where((e) => e is TestEventTestStart)
    .cast<TestEventTestStart>()
    .forEach((start) => print(start.test.name));

This code will run the tests of a project and print their names as they start.


Built and maintained by Invertase.

7
likes
0
pub points
0%
popularity

Publisher

verified publisherinvertase.io

Provides a Dart API for interacting with `dart test`/`flutter test` programatically

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

freezed_annotation, json_annotation, test

More

Packages that depend on dart_test_adapter