-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from passsy/feature/improve_coverage_reporting…
…_script Improve coverage reporting script
- Loading branch information
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |