Skip to content

Commit

Permalink
Merge pull request #20 from vanlooverenkoen/feature/#19-test-coverage
Browse files Browse the repository at this point in the history
Add test coverage badge
  • Loading branch information
vanlooverenkoen committed Oct 3, 2020
2 parents b6b48c1 + f60f434 commit 41d3330
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ before_script:
- flutter config --no-analytics
- flutter doctor
- export FLUTTER_SDK=`pwd`/../flutter
- gem install coveralls-lcov
- flutter pub global activate dart_style
- flutter packages get || exit -1;

after_success:
- coveralls-lcov coverage/lcov.info\

jobs:
include:
- stage: quality
name: "Tests"
script: flutter test || exit -1;
script: flutter test --coverage || exit -1;
- stage: quality
name: "Analyze"
script: flutter analyze || exit -1;
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Dart tool that will convert your default locale json to dart code.

[![pub package](https://img.shields.io/pub/v/locale_gen.svg)](https://pub.dartlang.org/packages/locale_gen)
[![Build Status](https://travis-ci.org/vanlooverenkoen/locale_gen.svg?branch=master)](https://travis-ci.org/vanlooverenkoen/locale_gen)
[![Coverage Status](https://coveralls.io/repos/github/vanlooverenkoen/locale_gen/badge.svg)](https://coveralls.io/github/vanlooverenkoen/locale_gen)
[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)

## Example

Expand Down

0 comments on commit 41d3330

Please sign in to comment.