sunshowers 5 hours ago

Thanks for posting about this! I'm the main author of nextest, and it represents my best foot forward for how Rust testing should be done. Happy to answer questions though I might be a bit intermittent.

  • landr0id 5 hours ago

    Big fan of nextest and this is my first time seeing this site. I'll be real I feel a bit ridiculous commenting this but you might want to consider rephrasing this:

    >Treat tests as cattle, not pets. Detect and terminate slow tests.

    Not sure saying, "hey, treat your tests as an animal you can kill at will" paints the right image.

    • sunshowers 4 hours ago

      That's fair! I'll find a way to rephrase it.

      edit: Updated to "Detect and handle slow tests". Thanks again!

    • trollbridge 4 hours ago

      This is from the Kubernetes saying of "treat servers like cattle, not pets". Of course, some people like me keep cattle as pets, but then again I also name my servers, even the virtual or containerised ones.

      • sunshowers 4 hours ago

        Yeah that was indeed the inspiration (though I'm pretty sure it predates Kubernetes!) but the juxtaposition with "terminate" is unfortunate.

        • wojciii 4 hours ago

          I liked the way it was phrased. You can't make everybody happy. :)

      • seanhunter 1 hour ago

        It’s a horrible saying in that context also.

  • mrec 3 hours ago

    Have there been any discussions about upstreaming this into cargo proper? Are there any significant downsides to nextest compared to its predecessor?

  • gdcbe 2 hours ago

    Thank you very much for developing nextest. It is what allows our projects like rama [1] to run thousands and thousands of tests in a blink of an eye! Keep it up!

    [1] https://ramaproxy.org

jtwaleson 56 minutes ago

Super happy user here! It's an excellent piece of engineering.

We're running a fork that supports a "sidecar" server for running multiple integration tests against. So if any tests that need the server are included, it spawns the server, runs the integration tests, and then shuts it down. By re-using the same server we speed up our runs tremendously.

Discussion thread on gh: https://github.com/nextest-rs/nextest/discussions/3330

satvikpendem 5 hours ago

I love nextest, it's been great. This along with bacon catches a lot of issues.

mohsen1 2 hours ago

I love nextest. without it my CI could take hours

https://github.com/tsz-org/tsz/actions/runs/29002057457/job/...

watch it running 32.5k unit tests without breaking a sweat!

  • sunshowers 2 hours ago

    Thanks! BTW you might enjoy setting CARGO_TERM_COLOR=always in your environment :) dtolnay/rust-toolchain does this automatically but it looks like you aren't using that action.

    • mohsen1 1 hour ago

      Thanks! Any pro tips for sharding? I landed on single job because couldn't get cache to work properly for shards to be fast enough to worth it

jstrong 2 hours ago

seems like `cargo nextest run` just runs `--lib` tests by default? however, `cargo test` is not so slow if you do `cargo test --lib`. how do I get nextest to execute the doc tests, too?

esafak 6 hours ago

Anybody using this in production?

edit: Thanks, will try!

  • tekacs 6 hours ago

    Yes, for a long while – I believe it's fairly widely used (and it's absolutely excellent!)

  • DennisL123 5 hours ago

    Yes, been using it for 18’ish months. Works great.

  • aabhay 4 hours ago

    Yep. Tokio uses it for their tests in CI as well last I checked.

  • musicmatze 3 hours ago

    Been using it for years, for opensource stuff and at work. No issues whatsoever.

  • gdcbe 2 hours ago

    Yes we use it for rama [1]. You can check its justfile and CI workflow file how we use it. Those run thousands and thousands of tests thx to nextest and what feels like instantly (once compiled).

    Large projects build with rama use it as well. But those are proprietary from partners so sadly cannot share those.

    [1]: https://github.com/plabayo/rama

patates 6 hours ago

I somehow tried to make sense of the name as a superlative form of "next". Perhaps next-test would have been fine?

  • sunshowers 5 hours ago

    That is indeed the pun =)

    • patates 4 hours ago

      Oh, sorry then, thanks for the clarification :)

  • mightyham 1 hour ago

    Coming from the DC area, this comment reminds me of how the metro payment system "Smartrip" was recently renamed to "Smart Trip".