dartTest function
Executes dart test
and decode the output
Implementation
Stream<TestEvent> dartTest({
Map<String, String>? environment,
List<String>? arguments,
List<String>? tests,
String? workdingDirectory,
// TODO(rrousselGit) expose a typed interface for CLI parameters
}) {
return _parseTestJsonOutput(
() {
return Process.start(
'dart',
[
// '--packages=${await Isolate.packageConfig}',
'test',
...?arguments,
'--reporter=json',
'--chain-stack-traces',
...?tests,
],
environment: environment,
workingDirectory: workdingDirectory,
);
},
);
}