Skip to content

feat: add support for RUST_TESTDIR environment variable#27

Open
Frando wants to merge 1 commit intoflub:mainfrom
Frando:feat/env-var
Open

feat: add support for RUST_TESTDIR environment variable#27
Frando wants to merge 1 commit intoflub:mainfrom
Frando:feat/env-var

Conversation

@Frando
Copy link
Copy Markdown

@Frando Frando commented Mar 26, 2026

This adds support for a RUST_TESTDIR environment variable to override the testdir location.
This can be useful if you want to manually "name" specific test runs to compare results.:

RUST_TESTDIR=/tmp/testdir-main cargo test
git checkout my-branch
RUST_TESTDIR=/tmp/testdir-branch cargo test

It also becomes useful when using with other tools that might orchestrate concurrent runs of tests, and thus don't have to parse out the testdir-x structure if they want to use or inspect the results.

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

Successfully merging this pull request may close these issues.

1 participant