New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update documentation: Add how to generate HTML coverage report from unit tests #22899
Comments
I'm working on a PR to support emitting the coverage profile in |
I think there were also plans to integrate https://codecov.io, but not sure someone is currently working on that |
I'd like to help test the change when you have it ready. I was also thinking of having Jenkins output the code coverage to its workspace for viewing that way? |
opened PR #22930 |
test-integration-cli uses `go_test_dir` for fetching the coverprofile. Now test-unit utilizes `go_test_dir` as well. e.g. for github.com/docker/api, the coverprofile is located on bundles/latest/test-unit/coverprofiles/docker-api Update moby#22899 Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
e.g. for github.com/docker/api, the coverprofile is located on bundles/latest/test-unit/coverprofiles/docker-api Update moby#22899 Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
e.g. for github.com/docker/api, the coverprofile is located on bundles/latest/test-unit/coverprofiles/docker-api Update moby#22899 Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
We also have I've just tested (via |
Aha: #17491
|
So to summarize:
I think we have a couple options here:
|
It looks like this issue went stale. Let me close it. |
Steps to reproduce the issue:
When making
test-unit
I saw a lot of useful information about code paths and coverage percentages. I'd like to generate a HTML coverage report to view in a browser and see if I can contribute by increasing coverage somewhere. I.e.Describe the results you received:
Percentages on the console
Describe the results you expected:
An option or flag described at https://docs.docker.com/opensource/project/test-and-docs/ to give a html report such as
go tool cover -html=coverage.out
found at:https://blog.golang.org/cover
Since the tests are run through Make and hack/make.sh I was not sure if it was easy to pass the flag in through TESTARGS or TESTFLAGS and also wasn't sure where the appropriate place was to ask a question like this.
The text was updated successfully, but these errors were encountered: