-
Notifications
You must be signed in to change notification settings - Fork 128
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
Modified binary directory and test executable discovery for coverage #55
Modified binary directory and test executable discovery for coverage #55
Conversation
Codecov Report
@@ Coverage Diff @@
## master #55 +/- ##
=======================================
Coverage 94.46% 94.46%
=======================================
Files 33 33
Lines 5200 5200
=======================================
Hits 4912 4912
Misses 288 288 Continue to review full report at Codecov.
|
Thanks, I'll test it as well locally. |
There are multiple issues with your changes, for example BINARY_DIR isn't defined and the patterns don't work for me that well. |
not sure if I'm just doing something wrongTM but for some reason copy pasting the whole I just tried out the current master (
Thinking a bit more, instead of using the
That makes the coverage flow work a lot better for my repository, with a caveat: The last binary that is executed will have the overarching stats on the kcov index page, but I think that problem may already have existed anyway. The |
fa42793
to
3b33a2d
Compare
This prevents the need to discover binaries relevant to the current coverage collection operation, which has proven to be difficult / error prone. Issue sagiegurari#50
3b33a2d
to
2a922c2
Compare
I pushed a change to this branch, hopefully it works for you 🤞 |
That's a really awesome idea. I'll test it tomorrow and if works good, i'll merge it in. |
Really tried to make this one work, but with no success. > kcov --include-pattern=/projects/rust/src/ target/coverage cargo test
error: process didn't exit successfully: `rustc -vV` (signal: 11, SIGSEGV: invalid memory reference) Which is strange since running the rustc -vV works good, so it doesn't play well via kcov > rustc -vV
rustc 1.24.0-nightly (3bee2b44c 2017-12-16)
binary: rustc
commit-hash: 3bee2b44cfd5610ad0346f0179602d91a8dedfd0
commit-date: 2017-12-16
host: armv7-unknown-linux-gnueabihf
release: 1.24.0-nightly
LLVM version: 4.0 |
Ah sadness, seems to be SimonKagstrom/kcov#153 / SimonKagstrom/kcov#212. Does it work if you use |
Just retried this, running |
Linking related issues:
There is |
I subscribed to both issues in cargo. I think once resolve we should revisit this, but until than I'm not sure there is much we can do. |
cool I'll close this episode, and do something to make the build happy in the meantime. Thanks a lot for your efforts! |
This should restrict the files run during coverage to the test executables relevant to the workspace.
Issue #50