startAll method

Future<void> startAll()

Implementation

Future<void> startAll() async {
  return await RunnerBenchmark.async('support_service', 'startAll', () async {
    _stopRequested = false;
    try {
      for (final config in configs) {
        if (await _isReady(config.resolvedReadyUrl)) continue;
        final service = await _RunningTestService.start(
          config,
          artifactRoot: artifactRoot,
        );
        if (_stopRequested) {
          await service.stop();
          return;
        }
        _running.add(service);
        await service.waitUntilReady(
          isCancelled: () => _stopRequested,
        );
      }
    } catch (_) {
      await stopAll();
      rethrow;
    }
  });
}