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
df1462fa
Unverified
Commit
df1462fa
authored
Feb 26, 2019
by
Zachary Anderson
Committed by
GitHub
Feb 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tool,fuchsia_tester] Only require a test source dir for coverage (#28168)
parent
cb84c157
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
fuchsia_tester.dart
packages/flutter_tools/bin/fuchsia_tester.dart
+7
-5
No files found.
packages/flutter_tools/bin/fuchsia_tester.dart
View file @
df1462fa
...
...
@@ -34,7 +34,6 @@ const String _kOptionCoverageDirectory = 'coverage-directory';
const
List
<
String
>
_kRequiredOptions
=
<
String
>[
_kOptionPackages
,
_kOptionShell
,
_kOptionTestDirectory
,
_kOptionSdkRoot
,
_kOptionIcudtl
,
_kOptionTests
,
...
...
@@ -75,8 +74,6 @@ Future<void> run(List<String> args) async {
fs
.
systemTempDirectory
.
createTempSync
(
'flutter_fuchsia_tester.'
);
try
{
Cache
.
flutterRoot
=
tempDir
.
path
;
final
Directory
testDirectory
=
fs
.
directory
(
argResults
[
_kOptionTestDirectory
]);
final
String
shellPath
=
argResults
[
_kOptionShell
];
if
(!
fs
.
isFileSync
(
shellPath
))
{
...
...
@@ -101,9 +98,9 @@ Future<void> run(List<String> args) async {
final
Link
testerDestLink
=
fs
.
link
(
artifacts
.
getArtifactPath
(
Artifact
.
flutterTester
));
testerDestLink
.
parent
.
createSync
(
recursive:
true
);
testerDestLink
.
createSync
(
shellPath
);
testerDestLink
.
createSync
(
fs
.
path
.
absolute
(
shellPath
)
);
final
Link
icudtlLink
=
testerDestLink
.
parent
.
childLink
(
'icudtl.dat'
);
icudtlLink
.
createSync
(
argResults
[
_kOptionIcudtl
]
);
icudtlLink
.
createSync
(
fs
.
path
.
absolute
(
argResults
[
_kOptionIcudtl
])
);
final
Directory
sdkRootDest
=
fs
.
directory
(
artifacts
.
getArtifactPath
(
Artifact
.
flutterPatchedSdkPath
));
sdkRootDest
.
createSync
(
recursive:
true
);
...
...
@@ -116,9 +113,14 @@ Future<void> run(List<String> args) async {
PackageMap
.
globalPackagesPath
=
fs
.
path
.
normalize
(
fs
.
path
.
absolute
(
argResults
[
_kOptionPackages
]));
Directory
testDirectory
;
CoverageCollector
collector
;
if
(
argResults
[
'coverage'
])
{
collector
=
CoverageCollector
();
if
(!
argResults
.
options
.
contains
(
_kOptionTestDirectory
))
{
throwToolExit
(
'Use of --coverage requires setting --test-directory'
);
}
testDirectory
=
fs
.
directory
(
argResults
[
_kOptionTestDirectory
]);
}
...
...
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