Skip to content

Commit

Permalink
Install coverage package on demand
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy committed Dec 6, 2018
1 parent ab1f18f commit 74b61c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tool/run_coverage_locally.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/sh

pub global activate coverage
pub global activate dart_codecov_generator
(pub global list | grep coverage) || {
# install coverage when not found
pub global activate coverage
}
pub global run coverage:collect_coverage --port=8111 -o out/coverage/coverage.json --resume-isolates --wait-paused &
dart --observe=8111 test/dart_kollection_test.dart
pub global run coverage:format_coverage --packages=.packages --report-on lib --in out/coverage/coverage.json --out out/coverage/lcov.info --lcov
Expand Down

0 comments on commit 74b61c1

Please sign in to comment.