-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Format test display name with Wast file name, line and Wasm file name (…
…#498) A minor improvement to how spec tests are generated and displayed that should help with tracking down issues. This adds the `DisplayName(...)` annotation on most generate tests, so that they are now named `$wast_name.wast:$line` with optionally `@ $wasm_name`. For instance, `test23` in `SpecV1ImportsTest` would show up as `imports.wast:154 @ spec.19.wasm`. If you highlight `imports.wast:154` you should be able to jump to that file in your IDE; for instance, with IntelliJ you can hit Shift twice, the "Look anywhere" window will pop up: ![Screenshot 2024-08-29 at 12 02 33](https://github.com/user-attachments/assets/a5b0a8b8-ab92-403b-8be7-f2cbda460e71) Hit enter and you are brought to the right point of the target Wast file: ![Screenshot 2024-08-29 at 12 02 48](https://github.com/user-attachments/assets/25a02b54-8f89-4a59-96d8-873af701fdc3) The Wasm file name is useful for reference and to disasm the binary when necessary. Suggestions for improvements are welcome. If you don't like it, also fine, but I think something similar would be useful. --------- Signed-off-by: Edoardo Vacchi <[email protected]>
- Loading branch information
Showing
1 changed file
with
40 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters