-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Binaries aren't compiled and problem with assert_cmd
#903
Comments
So to get coverage binaries actually have to be built with a specific set of linker flags. Also because So what you want is probably something like |
@xd009642 thanks a lot! Your second options works for me. You can close this Issue as far as it concerns me. |
Cool, also I came across this in a discussion the other day and found just a simple |
@xd009642 Only adding |
is this the same issue impacting |
As far as I can tell no, it seems that your test simply runs longer than the timeout that you specified (line 510), I'd simply increase it. |
Describe the bug
Tarpaulin doesn't work together with
assert_cmd
, because tarpaulin doesn't build binaries (or deletes them). After working around the problem no line coverage is generated.To Reproduce
The error:
The problem is surely triggered because tarpaulin cleans the project. Using
--skip-clean
I can avoid this, but in that case I don't get line coverage. Is this expected? How do I get coverage for the main function?The text was updated successfully, but these errors were encountered: