-
-
Notifications
You must be signed in to change notification settings - Fork 27
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 --test-tool=nextest #223
Conversation
Fixes Support `cargo nextest` #85 (but still needs docs and an integration test)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good!
Hey @sourcefrog , thanks for updating cargo mutants with nextest! I've tested it on stackslib with mutants that are caught and the difference is truly significant ( excepting unmutated build and test, from cargo test
cargo nextest
The baseline tests ran in ~20 minutes, meaning it took less than 6 minutes to run the mutants with nextest's fail-fast flag enabled, compared to cargo test's 1h 10m. Documentation related as well, the |
Wow that's incredible @ASuciuX! |
That's outstanding, thanks for letting us know! I will do the couple of small items in the head of the PR including checking the docs about passing options to cargo test/nextest, and then push a release. I don't think you need to set Regarding |
You are right @sourcefrog , I've tried without Interesting features, thank you for sharing, I will take a look into those. |
Hooray for mdbook-linkcheck
Fixes #85
cargo test
also cover nextestPerformance on cargo-mutants
I tested this on cargo-mutants itself locally and in CI, and it works well. However, interestingly, it does currently seem to be significantly slower in sharded full-tree tests than is cargo test (about 8m vs >13m). (Example CI run.)
It's also somewhat slower, although not as much, locally:
Although it's probably better at stopping early, it may be paying a higher per-test overhead or maybe making less use of parallelism?
Performance on stackslib
I also tested this on a 1% sample of stackslib with
It looks like some of those tests are still pretty slow, but it is making progress.