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
0ba0127c
Commit
0ba0127c
authored
Aug 04, 2016
by
Chris Bracken
Committed by
GitHub
Aug 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support a user-specified observatory port in CoverageCollector (#5217)
parent
f8a80b1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
coverage_collector.dart
packages/flutter_tools/lib/src/test/coverage_collector.dart
+1
-0
flutter_platform.dart
packages/flutter_tools/lib/src/test/flutter_platform.dart
+1
-1
No files found.
packages/flutter_tools/lib/src/test/coverage_collector.dart
View file @
0ba0127c
...
...
@@ -15,6 +15,7 @@ class CoverageCollector {
static
final
CoverageCollector
instance
=
new
CoverageCollector
();
bool
enabled
=
false
;
int
observatoryPort
;
void
collectCoverage
({
String
host
,
...
...
packages/flutter_tools/lib/src/test/flutter_platform.dart
View file @
0ba0127c
...
...
@@ -114,7 +114,7 @@ void main() {
int
observatoryPort
;
if
(
CoverageCollector
.
instance
.
enabled
)
{
observatoryPort
=
new
math
.
Random
().
nextInt
(
30000
)
+
2000
;
observatoryPort
=
CoverageCollector
.
instance
.
observatoryPort
??
new
math
.
Random
().
nextInt
(
30000
)
+
2000
;
await
CoverageCollector
.
instance
.
finishPendingJobs
();
}
...
...
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