dart_test_adapter 0.2.1 dart_test_adapter: ^0.2.1 copied to clipboard
Provides a Dart API for interacting with `dart test`/`flutter test` programmatically
Dart test adapterA package for executing `dart test`/`flutter test` using plain Dart code
dart_test_adapter revolves two functions:
These functions respectively execute
dart test or
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.