-
Notifications
You must be signed in to change notification settings - Fork 159
feat: merge coverage file and report to goverall #1211
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
Conversation
Welcome @cutecutecat! It looks like this is your first PR to tensorchord/envd 🎉 |
It seems worked. |
The test coverage is reduced to 19% (from 46% to 19%) |
Is it expected? |
https://coveralls.io/builds/54392418/source?filename=pkg%2Fbuilder%2Fbuilder.go I think the I am not sure if the merge is the intersection of these test coverage reports or the union set |
Let we have a see. I have downloaded artifact from Is is reported that all lines about it only appeared in I think there might be some neglect in previous coverage file generating procedure. I will take some more time to trace the calling graph in testcases.
|
One of the caller of Line 101 in 7f10440
This line is traced in |
I suspect the problem is about Line 205 in 7f10440
and Line 196 in 7f10440
They restrict coverage trace scope inside Let me test this solution~ |
Thanks for your time! |
* pick go-cover-merge action to merge several coverage files * upload merged file to coverall * fix test coverpkg to whole pkg directory Signed-off-by: cutecutecat <starkind1997@gmail.com>
It might be solved now~ |
Cool! |
@all-contributors Please add @cutecutecat for the code contribution! |
I've put up a pull request to add @cutecutecat! 🎉 |
feat: merge coverage file and report to coverall * pick go-cover-merge action to merge several coverage files * upload merged file to coverall * fix test coverpkg to whole pkg directory Signed-off-by: cutecutecat <starkind1997@gmail.com> Signed-off-by: cutecutecat <starkind1997@gmail.com> Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: cutecutecat starkind1997@gmail.com
The action cutecutecat/go-cover-merge makes the wrapper of gocovmerge.
Caution:
actions/download-artifact@v3
will create a directory ofpath
, and put the actual artifact file inside that path when using argumentpath
So:
will lead to a path of
e2e-cli-coverage.out/e2e-cli-coverage.out
will close #636