Browse Source

tool: Ignore all generated code in coverage

pull/392/head
jld3103 1 year ago
parent
commit
fed60f499e
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      tool/coverage.sh

2
tool/coverage.sh

@ -9,6 +9,6 @@ mkdir -p /tmp/nextcloud-neon
cd packages/nextcloud cd packages/nextcloud
rm coverage -rf rm coverage -rf
fvm dart run coverage:test_with_coverage --function-coverage --branch-coverage -- --timeout 60s "$@" fvm dart run coverage:test_with_coverage --function-coverage --branch-coverage -- --timeout 60s "$@"
lcov --remove coverage/lcov.info "$(pwd)/lib/src/nextcloud.openapi.g.dart" -o coverage/filtered.info lcov --remove coverage/lcov.info "$(pwd)/lib/src/**.g.dart" -o coverage/filtered.info
genhtml coverage/filtered.info -o coverage/html genhtml coverage/filtered.info -o coverage/html
) )

Loading…
Cancel
Save