Another question regarding tests for projects targ...
# webassembly
a
Another question regarding tests for projects targeting Wasm WASI. With
wasmWasiTest
it is not possible to debug the tests in Idea. Suppose I have some utility code that doesn't rely on any Wasm-related stuff, are there any options to debug tests for such code without running them in a Wasm runtime?
a
Right now (as far as I see), not many runtimes outside of the browser support debugging (I've made it work only for WAMR with Kotlin/Wasm), so it is not possible to integrate the debugging process inside the IDE. If you have code that is not related to Wasm at all, you can put those tests in the
commonTest
source set and run them on any other target that supports debugging (JVM, for example). P.S. We are working on making it possible to use the debugger functionality in outside-of-browser VMs, but right now, only WAMR provides all the needed functionality.
thank you color 1
👍 1
d
Can you share your WAMR example or config? Or, at least, your experiences with using WAMR? We have integrated with wasmtime but are looking for a lighter weight runtime (in terms of library size and memory use.) WAMR has come up as an interesting alternative and any feedback you have would be really helpful for us.
a
We have a PR in kotlin-wasm-wasi-template, for setting up WAMR: https://github.com/Kotlin/kotlin-wasm-wasi-template/pull/4 I still encountered a weird issue last time, but I did not re-check it after creating the PR.
❤️ 1