Skip to content

Commit

Permalink
ci: change run test command to add coverage lcov.info
Browse files Browse the repository at this point in the history
  • Loading branch information
brunogabriel committed Oct 17, 2024
1 parent 2e20525 commit 3efd8b6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ jobs:
working-directory: pokedex

- name: Run tests
run: flutter test --coverage --reporter github
run: |
flutter test --coverage --reporter github
# Ensure coverage for all files
lcov --list coverage/lcov.info # To verify before editing lcov
if [ -f coverage/lcov.info ]; then
lcov --add-tracefile coverage/lcov.info --output-file coverage/lcov.info
lcov --remove coverage/lcov.info 'test/*' --output-file coverage/lcov.info
lcov --list coverage/lcov.info # To see the changes
fi
working-directory: pokedex

- name: Upload coverage reports to Codecov
Expand Down

0 comments on commit 3efd8b6

Please sign in to comment.