saulecabrera opened PR #9602 from saulecabrera:test-macros-handle-with
to bytecodealliance:main
:
This commit introduces the ability to pass a custom attribute to the procedural macro via
#[wasmtime_test(with = "...")]
. This makes it possible to use the macro in situations where the caller desires to use a different test attribute such as#[tokio::test]
.Additionally this commit also introduces support for the test funcition asyncness, which was previously ignored.
This change is mainly motivated by adding epoch interruption support to Winch.
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
saulecabrera requested wasmtime-core-reviewers for a review on PR #9602.
saulecabrera requested pchickey for a review on PR #9602.
pchickey submitted PR review.
pchickey merged PR #9602.
Last updated: Nov 22 2024 at 16:03 UTC