Skip to content

Commit

Permalink
adding code coverage for code_coverage – so meta!
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed May 14, 2015
1 parent de643ce commit be74d46
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Coverage provides coverage data collection, manipulation, and formatting for
Dart.

[![Build Status](https://travis-ci.org/dart-lang/coverage.svg?branch=master)](https://travis-ci.org/dart-lang/coverage)
[![Coverage Status](https://coveralls.io/repos/dart-lang/coverage/badge.svg?branch=master)](https://coveralls.io/r/dart-lang/coverage)


Tools
-----
Expand Down
10 changes: 10 additions & 0 deletions tool/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,13 @@ dartanalyzer $DARTANALYZER_FLAGS \
# Run the tests.
echo "Running tests..."
dart --checked test/collect_coverage_test.dart

# Install dart_coveralls; gather and send coverage data.
if [ "$COVERALLS_TOKEN" ] && [ "$TRAVIS_DART_VERSION" = "stable" ]; then
pub global activate dart_coveralls
pub global run dart_coveralls report \
--token $COVERALLS_TOKEN \
--retry 2 \
--exclude-test-files \
test/collect_coverage_test.dart
fi

0 comments on commit be74d46

Please sign in to comment.