test-log icon indicating copy to clipboard operation
test-log copied to clipboard

WASM support

Open bonsairobo opened this issue 2 months ago • 2 comments

I'm hitting this error when trying to use test-log from a WASM build:

panicked at library/std/src/sys/pal/wasm/../unsupported/time.rs:31:9:
        time not implemented on this platform

bonsairobo avatar Oct 02 '25 20:10 bonsairobo

Stacking also doesn't work:

#[wasm_bindgen_test::wasm_bindgen_test]
#[test_log::test]
async fn it_works() {
}

results in:

error: async functions cannot be used for tests

teohhanhui avatar Oct 20 '25 17:10 teohhanhui

I don't think anybody has worked on WASM support yet. If you have a working prototype, feel free to open a pull request and we can discuss.

d-e-s-o avatar Oct 22 '25 15:10 d-e-s-o