TestCommand constructor

TestCommand({
  1. required PubspecYaml pubspecYaml,
  2. required FileSystem fs,
  3. required Logger logger,
  4. required Bindings bindings,
  5. required PubspecLock pubspecLock,
  6. required FindFile findFile,
  7. required KeyPressListener keyPressListener,
  8. required ScriptsYaml scriptsYaml,
  9. required RunManyScripts runManyScripts,
  10. required RunOneScript runOneScript,
})

Implementation

TestCommand({
  required PubspecYaml pubspecYaml,
  required FileSystem fs,
  required Logger logger,
  required Bindings bindings,
  required PubspecLock pubspecLock,
  required FindFile findFile,
  required KeyPressListener keyPressListener,
  required ScriptsYaml scriptsYaml,
  required RunManyScripts runManyScripts,
  required RunOneScript runOneScript,
}) {
  addSubcommand(
    TestRunCommand(
      bindings: bindings,
      findFile: findFile,
      fs: fs,
      logger: logger,
      pubspecLock: pubspecLock,
      pubspecYaml: pubspecYaml,
      scriptsYaml: scriptsYaml,
      runManyScripts: runManyScripts,
      runOneScript: runOneScript,
    ),
  );

  addSubcommand(
    TestCleanCommand(
      bindings: bindings,
      findFile: findFile,
      fs: fs,
      logger: logger,
      pubspecLock: pubspecLock,
      pubspecYaml: pubspecYaml,
      scriptsYaml: scriptsYaml,
      runManyScripts: runManyScripts,
      runOneScript: runOneScript,
    ),
  );

  addSubcommand(
    TestWatchCommand(
      bindings: bindings,
      findFile: findFile,
      fs: fs,
      logger: logger,
      pubspecLock: pubspecLock,
      pubspecYaml: pubspecYaml,
      keyPressListener: keyPressListener,
      scriptsYaml: scriptsYaml,
      runManyScripts: runManyScripts,
      runOneScript: runOneScript,
    ),
  );
}