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

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,
}) {
  addSubcommand(
    TestRunCommand(
      bindings: bindings,
      findFile: findFile,
      fs: fs,
      logger: logger,
      pubspecLock: pubspecLock,
      pubspecYaml: pubspecYaml,
      scriptsYaml: scriptsYaml,
    ),
  );

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

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