Skip to content

Commit 3c576d9

Browse files
authored
chore: reference nextest as an alternative to temp_env (#30)
1 parent 8c41f55 commit 3c576d9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ temp-env
33

44
Set environment variables temporarily.
55

6-
This crate is useful for testing with different environment variables that should not interfere.
6+
This crate is useful for testing with different environment variables that should not interfere when running `cargo test`.
77

88
This code started as a small test helper written by [@fabian-braun] and [@nbaztec] and published by [@fabian-braun]
99
on [StackOverflow]. [@vmx] found it useful and took the time to make it a proper crate.
@@ -72,6 +72,14 @@ Features
7272

7373
- `async_closure`: When enabled you can use `async_with_var()` with async closures. This feature needs at least Rust version 1.64.
7474

75+
Noteworthy
76+
----------
77+
78+
As an alternative to using this crate,
79+
you might consider migrating your testing to [`cargo-nextest`](https://github.com/nextest-rs/nextest).
80+
`cargo-nextest` runs each test in a separate process, which makes it unnecessary to synchronize the altering of environment variables
81+
as described [here](https://nexte.st/docs/configuration/env-vars/#altering-the-environment-within-tests).
82+
7583
License
7684
-------
7785

0 commit comments

Comments
 (0)