dart_test_adapter 0.1.0 dart_test_adapter: ^0.1.0 copied to clipboard
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 codedart_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.