IntegrationTestRunnerArgs constructor
IntegrationTestRunnerArgs(})
Implementation
IntegrationTestRunnerArgs(
List<String> args, {
bool verifyValidTarget = true,
void Function(ArgParser)? addExtraArgs,
}) {
final argParser = buildArgParser(addExtraArgs: addExtraArgs);
argResults = argParser.parse(args);
rawArgs = args;
if (verifyValidTarget) {
final target = argResults[testTargetArg];
assert(
target != null,
'Please specify a test target (e.g. '
'--$testTargetArg=path/to/test.dart',
);
}
}