Skip to content

Commit d54a4bf

Browse files
committed
Update Flutter test command to include coverage and clean up coverage reports
1 parent a5f87b7 commit d54a4bf

6 files changed

Lines changed: 119 additions & 277 deletions

File tree

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
2525
- run: make check-secrets
2626
- run: flutter analyze
27-
- run: flutter test -r expanded
27+
- run: flutter test --coverage -r expanded
2828

2929
- name: SonarQube Scan
3030
uses: SonarSource/sonarqube-scan-action@7006c4492b2e0ee0f816d36501671557c97f5995 # v8.1.0

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
sudo apt-get update -y
8686
sudo apt-get install -y ninja-build libgtk-3-dev
8787
88-
- run: flutter test -r expanded
88+
- run: flutter test --coverage -r expanded
8989

9090
- name: SonarQube Scan
9191
uses: SonarSource/sonarqube-scan-action@7006c4492b2e0ee0f816d36501671557c97f5995 # v8.1.0

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ app.*.symbols
3838
# Obfuscation related
3939
app.*.map.json
4040

41+
# Coverage reports
42+
coverage/
43+
4144
# Android Studio will place build artifacts here
4245
/android/app/debug
4346
/android/app/profile

coverage/lcov.info

Lines changed: 0 additions & 220 deletions
This file was deleted.

0 commit comments

Comments
 (0)