getCommandsToRun method
Implementation
Iterable<CommandToRun> getCommandsToRun(
Iterable<PackageToTest> packagesToTest, {
required List<String> flutterArgs,
required List<String> dartArgs,
}) sync* {
for (final packageToTest in packagesToTest) {
yield createTestCommand(
projectRoot: packageToTest.packagePath,
relativeProjectRoot:
packageRootFor(path.relative(packageToTest.packagePath)),
flutterArgs: flutterArgs,
tool: packageToTest.tool,
dartArgs: dartArgs,
tests: [
if (packageToTest.optimizedPath case final test?
when packageToTest.tool.isDart)
path.relative(
test,
from: packageToTest.packagePath,
),
],
);
}
}