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';
import '../test/event_printer.dart';
import '../test/runner.dart';
import '../test/watcher.dart';
class TestCommand extends FastFlutterCommand {
TestCommand({ bool verboseHelp = false }) {
requiresPubspecYaml();
......@@ -108,10 +109,15 @@ class TestCommand extends FastFlutterCommand {
}
@override
Future<Set<DevelopmentArtifact>> get requiredArtifacts async => <DevelopmentArtifact>{
DevelopmentArtifact.universal,
DevelopmentArtifact.web,
};
Future<Set<DevelopmentArtifact>> get requiredArtifacts async {
final Set<DevelopmentArtifact> results = <DevelopmentArtifact>{
DevelopmentArtifact.universal,
};
if (argResults['platform'] == 'chrome') {
results.add(DevelopmentArtifact.web);
}
return results;
}
@override
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