bazel-sonarqube icon indicating copy to clipboard operation
bazel-sonarqube copied to clipboard

how to use this for GO coverage?

Open ahmsb8884 opened this issue 2 years ago • 1 comments

Can I use this for GO Lang code coverage? if yes please explain and if not any alternatives?

ahmsb8884 avatar Dec 14 '22 07:12 ahmsb8884

I use current repo for generating LCOV report for bazel coverage command

coverage --instrument_test_targets
coverage --combined_report=lcov
coverage --coverage_report_generator=@com_github_zetten_bazel_sonarqube//:sonarqube_coverage_generator

this creates a coverage report, then I move it to the some tmp path, where GHA SonarQube takes it and sends report to the server.

kaskabayev avatar Sep 01 '23 19:09 kaskabayev