Skip to content

Commit

Permalink
Use full_coverage package
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhnroyal committed Mar 14, 2024
1 parent 3fa6c9a commit 3bbb4a2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/coverage_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y squid
- run: dart pub get
- uses: bluefireteam/melos-action@v3
- name: '[Coverage] Setup full coverage'
run: melos run coverage:setup
- name: '[Verify step] Test Dart packages [VM]'
run: melos run test:dart
- name: '[Verify step] Test Dart packages [Chrome]'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:
- name: '[Verify step] Publish dry-run'
if: ${{ matrix.sdk == 'stable' }}
run: melos run publish-dry-run
- name: '[Coverage] Setup full coverage'
run: melos run coverage:setup
- name: '[Verify step] Test Dart packages [VM]'
run: melos run test:dart
- name: '[Verify step] Test Dart packages [Chrome]'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ doc/api/
!/.idea/modules.xml

coverage
**/test/full_coverage_test.dart
8 changes: 7 additions & 1 deletion melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ command:
# Clean coverage files
rm -rf coverage
rm -rf pubspec.lock
melos exec --dir-exists coverage -- "rm -rf coverage"
melos exec --dir-exists="coverage" -- "rm -rf coverage"
scripts:
analyze:
Expand Down Expand Up @@ -96,9 +96,15 @@ scripts:
test:coverage:
name: Run all tests and display coverage
run: |
melos run coverage:setup
melos run test
melos run coverage:format
melos run coverage:show
coverage:setup:
name: Setup full coverage
run: |
dart pub global activate full_coverage
melos exec --dir-exists="test" -- full_coverage
coverage:format:
name: Format coverage
run: |
Expand Down

0 comments on commit 3bbb4a2

Please sign in to comment.