Skip to content

Commit 80cf018

Browse files
elmerbulthuisElmer Bulthuis
andauthored
adds command for the codegen tests (#1310)
Co-authored-by: Elmer Bulthuis <elmerbulthuis@gmail.com>
1 parent 729ca22 commit 80cf018

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ Use `git submodule init` + `git submodule update` before running the tests.
5555

5656
The tests are generated by a macro `codegen_tests` in [crates/test-helpers](../crates/test-helpers/).
5757

58+
You can run all `codegen` tests in rust with the following command:
59+
60+
```sh
61+
cargo run test \
62+
--languages rust \
63+
--artifacts target/artifacts \
64+
--rust-wit-bindgen-path ./crates/guest-rust \
65+
tests/codegen
66+
```
67+
68+
5869
## Testing wit-bindgen - `runtime`
5970

6071
Otherwise tests are organized in `tests/runtime/*`. Inside this directory is a

0 commit comments

Comments
 (0)