runTestsWithCoverage function

Future runTestsWithCoverage(
  1. String packageRoot
)

Implementation

Future runTestsWithCoverage(String packageRoot) async {
  final flutterArgs = ['test', '--coverage', ''];

  final process = await Process.start('flutter', flutterArgs,
      workingDirectory: packageRoot);
  print('exit code: ${await process.exitCode}');
}