Skip to content
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

Contributing features back to cargo? #942

Closed
rex-remind101 opened this issue Aug 28, 2023 · 4 comments
Closed

Contributing features back to cargo? #942

rex-remind101 opened this issue Aug 28, 2023 · 4 comments

Comments

@rex-remind101
Copy link
Contributor

This is very cool, but is there a reason these features aren't added directly back to cargo test? If there is a reason could it be documented?

@sunshowers
Copy link
Member

sunshowers commented Aug 28, 2023

Hi there, thanks for the report. There are a few reasons nextest is a separate project:

  • As documented at https://nexte.st/book/how-it-works.html, nextest has a significantly thicker interface. cargo test cannot just change how it works without breaking backwards compatibility, while nextest did not have this constraint at the time it was created.
  • It's easier to experiment with improvements without having to worry about the long-term stability guarantees provided by Cargo, or go through the (necessarily) heavyweight Rust RFC process.
  • Ultimately, as mentioned in the readme, nextest is a gift. I only have limited time to work on it these days and it's a far more efficient use of my time to maintain nextest than to try and port the changes over to cargo test (which won't make nextest fully redundant anyway, so I'll still have to maintain it).

With all that said, there is currently an ongoing effort to add parts of nextest to cargo test. I'd love to see how that plays out over time. However I expect that nextest will always have a role as a place to experiment with UX and workflow improvements.

I'd welcome a PR which captures this information, probably added to the bottom of https://nexte.st/book/how-it-works.html. Would you like to submit this PR?

@rex-remind101
Copy link
Contributor Author

Thanks for the thoughtful explanation! I can add a pr once the weekend arrives.

@rex-remind101
Copy link
Contributor Author

#963 lmk if this works :)

@sunshowers
Copy link
Member

Thanks! Closing since this is now at https://nexte.st/book/how-it-works.html#contributing-features-back-to-cargo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants