Feature request: Run the same tests with different environment variables, in parallel #2352
svix-jplatte
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Motivation
We've got a test script over here that runs the same test suite a bunch of times with different environment variables set. It already got sped up a bunch by using nextest, so thanks for that!
However, we can only use nextest's high level of parallelization within one invocation of the test suite with a particular set of environment variables. Before we start the next invocation with a different set of environment variables, we wait for all previously-started tests to finish. We could fix this by adding more parallelism at the shell level, but then the output of the various nextest invocations would get mangled.
Proposal
Since nextest already runs every test in a separate process, it seems like it shouldn't be too hard for it to also support including the same test multiple times in a run, with different environment variables set. A potential interface for this might be a JSON or TOML input file you can feed to
cargo nextest run
that defines a list of test configurations to run, something likeAlternatives
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions