-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add Code coverage to PR #127
Comments
@gopinath-langote I'd like to take a go ;) at this one |
@amitlevy21 Thanks for picking up. Let me know if you need any access things for Codecov https://codecov.io. |
@gopinath-langote I am testing on a fork, codecov complains that the coverage file is empty. Running the following command: Output of coverage.txt: |
The test PR I made on my fork: https://github.com/amitlevy21/1build/pull/1 (has CI logs) |
I only found cli_test.go to be the only file with tests
|
There are integration tests not unit tests. So It might not be trivial to get coverage, Checkout https://www.cyphar.com/blog/post/20170412-golang-integration-coverage |
I found a simpler solution by using Can I open a PR? |
hello @amitlevy21 Thanks for the effort. I know this is not trivial to get coverage for such binary integration tests. I'm also trying to figure out the way. |
@gopinath-langote So from my understanding, Were seeing the wrong coverage rate because go test doesn't recognize the use of the cli via cobra, right? I didn't find any issue regarding this in the cobra repository, should I create one? |
The text was updated successfully, but these errors were encountered: