Unverified Commit f68bc1be authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

Dont depend on web SDK unless running tests on chrome (#34457)

parent ea6b7587
...@@ -21,6 +21,7 @@ import '../test/coverage_collector.dart'; ...@@ -21,6 +21,7 @@ import '../test/coverage_collector.dart';
import '../test/event_printer.dart'; import '../test/event_printer.dart';
import '../test/runner.dart'; import '../test/runner.dart';
import '../test/watcher.dart'; import '../test/watcher.dart';
class TestCommand extends FastFlutterCommand { class TestCommand extends FastFlutterCommand {
TestCommand({ bool verboseHelp = false }) { TestCommand({ bool verboseHelp = false }) {
requiresPubspecYaml(); requiresPubspecYaml();
...@@ -108,10 +109,15 @@ class TestCommand extends FastFlutterCommand { ...@@ -108,10 +109,15 @@ class TestCommand extends FastFlutterCommand {
} }
@override @override
Future<Set<DevelopmentArtifact>> get requiredArtifacts async => <DevelopmentArtifact>{ Future<Set<DevelopmentArtifact>> get requiredArtifacts async {
final Set<DevelopmentArtifact> results = <DevelopmentArtifact>{
DevelopmentArtifact.universal, DevelopmentArtifact.universal,
DevelopmentArtifact.web,
}; };
if (argResults['platform'] == 'chrome') {
results.add(DevelopmentArtifact.web);
}
return results;
}
@override @override
String get name => 'test'; String get name => 'test';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment