Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
f68bc1be
Unverified
Commit
f68bc1be
authored
Jun 14, 2019
by
Jonah Williams
Committed by
GitHub
Jun 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dont depend on web SDK unless running tests on chrome (#34457)
parent
ea6b7587
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
test.dart
packages/flutter_tools/lib/src/commands/test.dart
+10
-4
No files found.
packages/flutter_tools/lib/src/commands/test.dart
View file @
f68bc1be
...
@@ -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'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment