You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/macro/README.md
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -17,12 +17,10 @@ To add a test:
17
17
* Create `ui-tests/my-awesome-test.rs`
18
18
* Write an invalid `#[wasm_bindgen]` invocation, testing the error you're
19
19
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
21
21
* From within the `ui-tests` folder, execute `./update-all-references.sh`. This
22
22
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!
25
23
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