getCommandsToRun method
Implementation
List<CommandToRun> getCommandsToRun(
Map<String, DetermineFlutterOrDart> testFiles, {
required List<String> flutterArgs,
required List<String> dartArgs,
}) {
final commandsToRun = <CommandToRun>[];
for (final MapEntry(key: test, value: tool) in testFiles.entries) {
final projectRoot = packageRootFor(test);
final testPath = path.relative(test, from: projectRoot);
final command = createTestCommand(
projectRoot: projectRoot,
relativeProjectRoot: packageRootFor(path.relative(test)),
tool: tool,
flutterArgs: flutterArgs,
dartArgs: dartArgs,
tests: [testPath],
);
commandsToRun.add(command);
}
return commandsToRun;
}