File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 33
44Set 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
88This code started as a small test helper written by [ @fabian-braun ] and [ @nbaztec ] and published by [ @fabian-braun ]
99on [ 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+
7583License
7684-------
7785
You can’t perform that action at this time.
0 commit comments