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.

Libraries

dart_test_adapter