File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ build --remote_download_minimal
2020test --remote_download_minimal
2121run --remote_download_outputs=all
2222coverage --build_runfile_links
23+ coverage --nocache_test_results
2324
2425# Needed by rules_meta.
2526# Follow https://github.com/fmeum/rules_meta/issues/1#issuecomment-1255828109
@@ -269,3 +270,4 @@ build:remote --build_metadata=VISIBILITY=PUBLIC
269270coverage:remote --strategy=CoverageReport=local,remote
270271coverage:remote --experimental_fetch_all_coverage_outputs
271272coverage:remote --experimental_split_coverage_postprocessing
273+ coverage:remote --experimental_remote_download_regex=.*/(coverage.dat$|_coverage/_coverage_report.dat$)
Original file line number Diff line number Diff line change @@ -138,12 +138,13 @@ check_config
138138# Print config parameters.
139139print_config
140140
141- lcov_opts=(--rc lcov_branch_coverage=1)
141+ # TODO: Try to track down the negative coverage issue.
142+ lcov_opts=(--rc branch_coverage=1 --ignore-errors negative)
142143
143144cd $( bazel info workspace)
144145
145146# Get coverage from bazel targets.
146- bazel coverage --remote_download_outputs=all -- combined_report=lcov //src/...
147+ bazel coverage --combined_report=lcov //src/...
147148
148149# Copy the output file
149150cp --no-preserve=mode " $( bazel info output_path) /_coverage/_coverage_report.dat" ${COVERAGE_FILE}
@@ -153,13 +154,11 @@ lcov "${lcov_opts[@]}" --summary ${COVERAGE_FILE}
153154
154155# Remove test files from the coverage files.
155156lcov " ${lcov_opts[@]} " -r ${COVERAGE_FILE} ' **/*_test.cc' -o ${COVERAGE_FILE}
156- lcov " ${lcov_opts[@]} " -r ${COVERAGE_FILE} ' **/*_mock.cc' -o ${COVERAGE_FILE}
157157lcov " ${lcov_opts[@]} " -r ${COVERAGE_FILE} ' **/*_mock.h' -o ${COVERAGE_FILE}
158158lcov " ${lcov_opts[@]} " -r ${COVERAGE_FILE} ' **/*_test.go' -o ${COVERAGE_FILE}
159159lcov " ${lcov_opts[@]} " -r ${COVERAGE_FILE} ' **/*.gen.go' -o ${COVERAGE_FILE}
160160lcov " ${lcov_opts[@]} " -r ${COVERAGE_FILE} ' **/*-mock.tsx' -o ${COVERAGE_FILE}
161161lcov " ${lcov_opts[@]} " -r ${COVERAGE_FILE} ' **/*-mock.ts' -o ${COVERAGE_FILE}
162- lcov " ${lcov_opts[@]} " -r ${COVERAGE_FILE} ' src/ui/src/types/generated/**' -o ${COVERAGE_FILE}
163162
164163# Print out the final summary.
165164lcov " ${lcov_opts[@]} " --summary ${COVERAGE_FILE}
You can’t perform that action at this time.
0 commit comments