IntegrationTestRunnerArgs constructor

IntegrationTestRunnerArgs(
  1. List<String> args, {
  2. bool verifyValidTarget = true,
  3. void addExtraArgs(
    1. ArgParser
    )?,
})

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',
    );
  }
}