diff --git a/src/doc/man/cargo-test.md b/src/doc/man/cargo-test.md index 4c3a9fb4518..75bf72b3070 100644 --- a/src/doc/man/cargo-test.md +++ b/src/doc/man/cargo-test.md @@ -59,9 +59,9 @@ on writing doc tests. ### Working directory of tests -The working directory of every test is set to the root directory of the package -the test belongs to. -Setting the working directory of tests to the package's root directory makes it +The working directory when running each unit and integration test is set to the +root directory of the package the test belongs to. +Setting the working directory of tests to the package's root directory makes it possible for tests to reliably access the package's files using relative paths, regardless from where `cargo test` was executed from. diff --git a/src/doc/man/generated_txt/cargo-test.txt b/src/doc/man/generated_txt/cargo-test.txt index 7cb952397e2..7955b0e3dd9 100644 --- a/src/doc/man/generated_txt/cargo-test.txt +++ b/src/doc/man/generated_txt/cargo-test.txt @@ -53,11 +53,11 @@ DESCRIPTION information on writing doc tests. Working directory of tests - The working directory of every test is set to the root directory of the - package the test belongs to. Setting the working directory of tests to - the package’s root directory makes it possible for tests to reliably - access the package’s files using relative paths, regardless from where - cargo test was executed from. + The working directory when running each unit and integration test is set + to the root directory of the package the test belongs to. Setting the + working directory of tests to the package’s root directory makes it + possible for tests to reliably access the package’s files using + relative paths, regardless from where cargo test was executed from. For documentation tests, the working directory when invoking rustdoc is set to the workspace root directory, and is also the directory rustdoc diff --git a/src/doc/src/commands/cargo-test.md b/src/doc/src/commands/cargo-test.md index 17296ded565..e38e9929e22 100644 --- a/src/doc/src/commands/cargo-test.md +++ b/src/doc/src/commands/cargo-test.md @@ -59,9 +59,9 @@ on writing doc tests. ### Working directory of tests -The working directory of every test is set to the root directory of the package -the test belongs to. -Setting the working directory of tests to the package's root directory makes it +The working directory when running each unit and integration test is set to the +root directory of the package the test belongs to. +Setting the working directory of tests to the package's root directory makes it possible for tests to reliably access the package's files using relative paths, regardless from where `cargo test` was executed from. diff --git a/src/etc/man/cargo-test.1 b/src/etc/man/cargo-test.1 index 59e7c047f7d..802169815b6 100644 --- a/src/etc/man/cargo-test.1 +++ b/src/etc/man/cargo-test.1 @@ -54,9 +54,9 @@ and may change in the future; beware of depending on it. See the \fIrustdoc book\fR for more information on writing doc tests. .SS "Working directory of tests" -The working directory of every test is set to the root directory of the package -the test belongs to. -Setting the working directory of tests to the package\[cq]s root directory makes it +The working directory when running each unit and integration test is set to the +root directory of the package the test belongs to. +Setting the working directory of tests to the package\[cq]s root directory makes it possible for tests to reliably access the package\[cq]s files using relative paths, regardless from where \fBcargo test\fR was executed from. .sp