-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
Cargo nextest integration #992
Comments
So I was going to suggest a vague idea of how to do it but as I think about it more I don't think it will work, with the current ptrace engine without a different flag added. The Generally, with ptrace coverage tools like kcov or tarpaulin you need the binary to get coverage for before starting coverage collection to read the debug info, so building tests and running tests needs to be 2 separate stages with a stage between to identify coverage spots. |
I probably won't look at this soon as I'm rather overloaded but I can offer advice/guidance beyond this if you're will to contribute 😅 otherwise I may try and move some work projects to nextest and figure it out then a bit in future |
Thanks for looking into this! cargo nextest does support splitting up the build and run phases: https://nexte.st/book/reusing-builds.html There's also support for listing tests with machine-readable output: https://nexte.st/book/machine-readable.html (in particular, Hope that helps! |
This also relates to something I mention in #1352: needing to run separate CI jobs for build + test, and for coverage. It's not possible to get jUnit XML output for the test results using |
Describe the feature
Simply said, I would like to use
cargo nextest
Instead ofcargo test
Why?
So I love
cargo tarpaulin
But for running testcargo nextest
Is just simply much faster and has things like retires which makes work just more efficient.Some Ressources:
Now I haven’t dug into the
cargo-tarpaulin
Code as it doesn’t seem like a 30 min thing to do, so my general questions are. Would it be hard to integration something like this? Do you have any code parts or points to watch out if I would have a go on that?As it seems
—command
Can be set tobuild
Ortest
, how big would the effort be to have a third option?The text was updated successfully, but these errors were encountered: