未验证 提交 fbaf9e82 编写于 作者: Y Yegor 提交者: GitHub

[web] rename watcher.dart to pipeline.dart (#27995)

上级 aa9ce6cb
......@@ -10,8 +10,8 @@ import 'package:path/path.dart' as path;
import 'package:watcher/src/watch_event.dart';
import 'environment.dart';
import 'pipeline.dart';
import 'utils.dart';
import 'watcher.dart';
class BuildCommand extends Command<bool> with ArgUtils<bool> {
BuildCommand() {
......
......@@ -87,13 +87,16 @@ abstract class ProcessStep implements PipelineStep {
}
}
/// Represents a sequence of asynchronous tasks to be executed.
/// Executes a sequence of asynchronous tasks, typically as part of a build/test
/// process.
///
/// The pipeline can be executed by calling [start] and stopped by calling
/// [stop].
///
/// When a pipeline is stopped, it switches to the [PipelineStatus.stopping]
/// state and waits until the current task finishes.
/// state. If [PipelineStep.isSafeToInterrupt] is true, interrupts the currently
/// running step and skips the rest. Otherwise, waits until the current task
/// finishes and skips the rest.
class Pipeline {
Pipeline({required this.steps});
......
......@@ -8,10 +8,10 @@ import 'dart:io' as io;
import 'package:args/command_runner.dart';
import 'common.dart';
import 'pipeline.dart';
import 'steps/compile_tests_step.dart';
import 'steps/run_tests_step.dart';
import 'utils.dart';
import 'watcher.dart';
/// Runs build and test steps.
///
......
......@@ -10,8 +10,8 @@ import 'package:web_test_utils/goldens.dart';
import '../environment.dart';
import '../exceptions.dart';
import '../pipeline.dart';
import '../utils.dart';
import '../watcher.dart';
/// Compiles web tests and their dependencies.
///
......
......@@ -19,9 +19,9 @@ import 'package:test_core/src/runner/reporter.dart' as hack;
import '../browser.dart';
import '../environment.dart';
import '../exceptions.dart';
import '../pipeline.dart';
import '../test_platform.dart';
import '../utils.dart';
import '../watcher.dart';
// Maximum number of tests that run concurrently.
const int _testConcurrency = int.fromEnvironment('FELT_TEST_CONCURRENCY', defaultValue: 10);
......
......@@ -12,10 +12,10 @@ import 'package:watcher/src/watch_event.dart';
import 'browser.dart';
import 'common.dart';
import 'pipeline.dart';
import 'steps/compile_tests_step.dart';
import 'steps/run_tests_step.dart';
import 'utils.dart';
import 'watcher.dart';
/// Runs tests.
class TestCommand extends Command<bool> with ArgUtils<bool> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册