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

Implementation

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

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

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