This is an automated email from the ASF dual-hosted git repository.

suyanhanx pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 1ac9b6edf doc(tests): fix test command (#2920)
1ac9b6edf is described below

commit 1ac9b6edf40e884a6c6ba44644c33c01dc9d669f
Author: G-XD <[email protected]>
AuthorDate: Thu Aug 24 00:03:20 2023 +0800

    doc(tests): fix test command (#2920)
---
 core/tests/behavior/README.md | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/core/tests/behavior/README.md b/core/tests/behavior/README.md
index 82a9f1694..dce39907c 100644
--- a/core/tests/behavior/README.md
+++ b/core/tests/behavior/README.md
@@ -40,20 +40,18 @@ cargo test services_fs
 
 As `cargo test` only run tests containing the following string in their names, 
we use `services_fs` to run all tests under `services::fs`.
 
-To run all tests under `tests/behavior/write.rs` for `fs`, we use 
`services_fs_write`.
+To run certain types of tests(such as `write`) for `fs`, we use 
`services_fs::test_write`.
 
 ```shell
-cargo test services_fs_write
+cargo test services_fs::test_write
 ```
 
-You can also run specific test(such as `test_stat`) for specific backend.
+You can also run specific test(such as `test_stat_dir`) for specific backend.
 
 ```shell
-cargo test services_fs_write::test_stat
+cargo test services_fs::test_stat_dir
 ```
 
-To get the full name of a behavior module, please check the `mod` declaration 
in `tests/behavior/*.rs`.(It is always the same as the file name.)
-
 ## Debug
 
 To debug a behavior test, you can use `RUST_LOG=debug RUST_BACKTRACE=full 
cargo test -- --show-output` to print the log with backtrace.

Reply via email to