You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "suyanhanx (via GitHub)" <gi...@apache.org> on 2023/10/30 07:29:32 UTC
Re: [PR] ci: Fix behavior tests been ignored [incubator-opendal]
suyanhanx commented on code in PR #3422:
URL: https://github.com/apache/incubator-opendal/pull/3422#discussion_r1375769383
##########
core/tests/behavior/README.md:
##########
@@ -27,23 +27,23 @@ Notice: If the env variables are not set, all behavior tests will be skipped by
Use `OPENDAL_TEST` to control which service to test:
```shell
-OPENDAL_TEST=fs cargo test behavior
+OPENDAL_TEST=fs cargo test behavior --features tests
```
To run certain types of tests(such as `write`), we use `behavior::test_write`.
```shell
-OPENDAL_TEST=fs cargo test behavior::test_write
+OPENDAL_TEST=fs cargo test behavior::test_write --features tests
```
You can also run specific test(such as `test_stat_dir`) for specific backend.
```shell
-OPENDAL_TEST=fs cargo test behavior::test_stat_dir
+OPENDAL_TEST=fs cargo test behavior::test_stat_dir --features tests
```
## Debug
-To debug a behavior test, you can use `RUST_LOG=debug RUST_BACKTRACE=full cargo test behavior -- --show-output` to print the log with backtrace.
+To debug a behavior test, you can use `RUST_LOG=debug RUST_BACKTRACE=full cargo test behavior --features tests -- --show-output` to print the log with backtrace.
Review Comment:
Missing `OPENDAL_TEST`.
We could also note that if there is an additional feature to be enabled, how to add it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org