mirror of
https://github.com/inventree/inventree-app.git
synced 2026-11-21 21:25:48 +00:00
More coverage (#905)
* Exclude translation files from coverage * added unit test
This commit is contained in:
1 parent
65cac7218f
commit
db4569ff52
9 files changed
+1779
-1
No files matched your search
@@ -84,6 +84,12 @@ jobs:
|
||||
run: |
|
||||
fvm flutter test --coverage
|
||||
|
||||
# Generated translation files are not exercised by tests, and swamp the coverage report
|
||||
- name: Exclude Translation Files from Coverage
|
||||
run: |
|
||||
awk '/^SF:/ { skip = ($0 ~ /lib\/l10n\//) } !skip; /^end_of_record/ { skip = 0 }' coverage/lcov.info > coverage/lcov.filtered.info
|
||||
mv coverage/lcov.filtered.info coverage/lcov.info
|
||||
|
||||
- name: Coveralls
|
||||
uses: coverallsapp/github-action@master
|
||||
with:
|
||||
|
||||
Reference in new issue
Block a user