Skip to content

Commit 3dc8c29

Browse files
Update testing docs for wasm-bindgen-macro (rustwasm#4256)
1 parent a8b1a09 commit 3dc8c29

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

crates/macro/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ To add a test:
1717
* Create `ui-tests/my-awesome-test.rs`
1818
* Write an invalid `#[wasm_bindgen]` invocation, testing the error you're
1919
generating
20-
* Execute `cargo test -p ui-tests`, the test will fail
20+
* Execute `cargo test -p wasm-bindgen-macro --test ui`, the test will fail
2121
* From within the `ui-tests` folder, execute `./update-all-references.sh`. This
2222
should create a `my-awesome-test.stderr` file.
23-
* Inspect `my-awesome-test.stderr` to make sure it looks ok
24-
* Rerun `cargo test -p ui-tests` and your tests should pass!
2523

26-
Testing here is a work in progress, see
27-
[#601](https://github.com/rustwasm/wasm-bindgen/issues/601) for more
28-
information.
24+
OR if you are on Windows, set the `TRYBUILD=overwrite` environment variable (this is done as `$env:TRYBUILD="overwrite"` [in powershell](https://stackoverflow.com/a/1333717/7595472)) and run the command again.
25+
* Inspect `my-awesome-test.stderr` to make sure it looks ok
26+
* Rerun `cargo test -p wasm-bindgen-macro --test ui` and your tests should pass!

0 commit comments

Comments
 (0)