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: CHANGELOG.md
+9
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,12 @@
40
40
*`console.*()` calls in tests are now always intercepted by default. To show them use `--nocapture`. When shown they are always printed in-place instead of after test results, analogous to `cargo test`.
- Fixed using [JavaScript keyword](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#keywords) as identifiers not being handled correctly.
@@ -67,6 +73,9 @@
67
73
* Internal functions are now removed instead of invalidly imported if they are unused.
Copy file name to clipboardexpand all lines: guide/src/wasm-bindgen-test/coverage.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ You can ask the runner to generate coverage data from functions marked as `#[was
9
9
10
10
## Enabling the feature
11
11
12
-
To enable this feature, you need to enable `cfg(wasm_bindgen_unstable_test_coverage)`.
12
+
To enable this feature, you need to enable the crate feature `unstable-test-coverage` on `wasm-bindgen-test`. Additionally its recommended to use the `msrv` crate feature on `wasm-bindgen-test` as well to disable profiling on internal functions, significantly improving the accuracy of the test coverage results.
13
13
14
14
## Generating the data
15
15
@@ -43,7 +43,7 @@ This adapts code taken from the [Rustc book], see that for more examples and gen
43
43
```sh
44
44
# Run the tests:
45
45
# `--tests` to not run documentation tests, which is currently not supported.
0 commit comments