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
I've done some experiments with wasm-mt-test and it's working great. However, I need to adjust my test code to run in a worker thread. It would be super cool if I could include a macro, like use wasm_mt_test::test and then my tests would automatically run in a worker.
Unless I'm mistaken, I believe it'd just generate a wrapper containing:
let pkg_js_uri = wasm_mt_test::get_pkg_js_uri();let th = wasm_mt_test::create_mt(&pkg_js_uri).await.thread().and_init().await.unwrap();exec!(th,async move || test_fn().await).await
The text was updated successfully, but these errors were encountered:
So far, we have just create_test_thread() for a similar purpose. A proc_macro for your use cases sounds interesting. Currently, I don't have enough time to actively add new functionalities to this crate, however I would love to review such a PR.
This project is 🔥!
I've done some experiments with wasm-mt-test and it's working great. However, I need to adjust my test code to run in a worker thread. It would be super cool if I could include a macro, like
use wasm_mt_test::test
and then my tests would automatically run in a worker.Unless I'm mistaken, I believe it'd just generate a wrapper containing:
The text was updated successfully, but these errors were encountered: