Skip to content

Commit

Permalink
docs(cargo-test): clarify the cwd is for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanglo committed Jun 18, 2023
1 parent 90be462 commit 4f99aa5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/doc/man/cargo-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 4f99aa5

Please sign in to comment.