You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/src/book/env-vars.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,9 @@ cargo-nextest exposes these environment variables to your tests *at runtime only
29
29
30
30
*`NEXTEST` — always set to `"1"`.
31
31
*`NEXTEST_EXECUTION_MODE` — currently, always set to `process-per-test`. More options may be added in the future if nextest gains the ability to run all tests within the same process ([#27]).
32
-
*`NEXTEST_BIN_EXE_<name>`: The absolute path to a binary target's executable. This is only set when running an [integration test] or benchmark. The `<name>` is the name of the binary target, exactly as-is. For example, `NEXTEST_BIN_EXE_my-program` for a binary named `my-program`. Binaries are automatically built when the test is built, unless the binary has required features that are not enabled.
32
+
*`NEXTEST_BIN_EXE_<name>`: The absolute path to a binary target's executable. This is only set when running an [integration test] or benchmark. The `<name>` is the name of the binary target, exactly as-is. For example, `NEXTEST_BIN_EXE_my-program` for a binary named `my-program`.
33
+
* Binaries are automatically built when the test is built, unless the binary has required features that are not enabled.
34
+
* When [reusing builds](reusing-builds.md) from an archive, this is set to the remapped path within the target directory.
@@ -41,7 +43,7 @@ cargo-nextest delegates to Cargo for the build, which controls the environment v
41
43
cargo-nextest also sets these environment variables at runtime, matching the behavior of cargo test:
42
44
43
45
*`CARGO` — Path to the `cargo` binary performing the build.
44
-
*`CARGO_MANIFEST_DIR` — The directory containing the manifest of your package. If [`--workspace-remap`](reusing-builds.md#new-options) is passed in, this is set to the remapped manifest directory. You can obtain the non-remapped directory using the value of this variable at compile-time, e.g. `env!("CARGO_MANIFEST_DIR")`.
46
+
*`CARGO_MANIFEST_DIR` — The directory containing the manifest of your package. If [`--workspace-remap`](reusing-builds.md#specifying-a-new-location-for-the-workspace) is passed in, this is set to the remapped manifest directory. You can obtain the non-remapped directory using the value of this variable at compile-time, e.g. `env!("CARGO_MANIFEST_DIR")`.
45
47
*`CARGO_PKG_VERSION` — The full version of your package.
46
48
*`CARGO_PKG_VERSION_MAJOR` — The major version of your package.
47
49
*`CARGO_PKG_VERSION_MINOR` — The minor version of your package.
0 commit comments