From fed60f499e7d9c0c279f8da8d519420827fd5801 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Fri, 16 Jun 2023 15:11:39 +0200 Subject: [PATCH] tool: Ignore all generated code in coverage --- tool/coverage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/coverage.sh b/tool/coverage.sh index 77655576..7744e4b4 100755 --- a/tool/coverage.sh +++ b/tool/coverage.sh @@ -9,6 +9,6 @@ mkdir -p /tmp/nextcloud-neon cd packages/nextcloud rm coverage -rf 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 )