Skip to content

Commit

Permalink
Merge pull request #25 from passsy/feature/improve_coverage_reporting…
Browse files Browse the repository at this point in the history
…_script

Improve coverage reporting script
  • Loading branch information
passsy authored Dec 14, 2018
2 parents c646537 + ee32a2c commit 627d13d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tool/run_coverage_locally.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/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
genhtml -o out/coverage/html out/coverage/lcov.info
genhtml -o out/coverage/html out/coverage/lcov.info
echo "open coverage report $PWD/out/coverage/html/index.html"

0 comments on commit 627d13d

Please sign in to comment.