Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Generate test coverage reports #113

Open
rbehjati opened this issue Jul 20, 2022 · 0 comments
Open

Generate test coverage reports #113

rbehjati opened this issue Jul 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@rbehjati
Copy link
Contributor

rbehjati commented Jul 20, 2022

A test coverage report can be generated using go test -cover (see https://tip.golang.org/doc/go1.2#cover). However, we cannot use it directly on the top-level repo, since we cannot run the authorization logic tests without bazel.

A test coverage report can be generated with bazel (https://docs.bazel.build/versions/main/coverage.html). But I was not able to generate html reports using genhtml on output generated by the bazel coverage --combined_report=lcov [target] command.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant