Integrates a Motoko unit test runner directly into the VS Code extension.
This workflow is compatible with testing libraries such as Motoko Matchers and supports running test files via the moc interpreter or as a WASI module.
It's also worth noting that this works completely out of the box using moc.js and Wasmer, both of which are bundled with the extension. As a result, it's no longer necessary to install wasmtime (or even dfx) to locally run the base library unit tests.
Progress:
[x] Register tests from *.test.mo files in the current workspace
Integrates a Motoko unit test runner directly into the VS Code extension.
This workflow is compatible with testing libraries such as Motoko Matchers and supports running test files via the moc interpreter or as a WASI module.
It's also worth noting that this works completely out of the box using moc.js and Wasmer, both of which are bundled with the extension. As a result, it's no longer necessary to install
wasmtime
(or evendfx
) to locally run the base library unit tests.Progress:
*.test.mo
files in the current workspace// @testmode wasmer
Next steps:
module { ... }
with a function for each test casemoc.js
interpreter to distinguish errors from warnings (currently always reports a successful run)moc.js
interpreter and WASI compilerFeedback is welcome!