After some discussion a few weeks back that included an @Alex Crichton wish-casting session, I've gotten to working on cm-testsuite, an attempt to build an authoritative source (and sink) for WAST tests that validate Component Model behavior.
While wasi-testsuite exist and is load bearing in some contexts, it's meant for WASI tests, and WASI releases/versions may include certain CM features but are not tied to them.
Right now we have many ways of testing component model features -- mostly WAST tests and component tests built from source code, and of course in-source-code tests, and even Python tests . The second implementation (Jco) is currently also a sort of a "test" in some respects of the ability to interpret and implement the CM.
When it comes to testing implementations, WAST while a custom format (note it's note quite the same as WAT -- it supports stanzas that are not normally present, which downstream users must implement) is the best cross-language method (a "wedge", even, some might say) we have... So what we need is a big repository of known-good WAST tests.
cm-testsuite addscm-testsuite looks to add one thing in particular: a central repository for WAST tests.
Note that it is up to engines/CM implementations/etc to use/run the tests themselves, and manage their own set of private tests if they'd like (of any variety).
Outside of the core goal of catching all the WAST tests, cm-testsuite introduces a lot of machinery to make maintaining, "gathering" and "distributing" WAST very easy to do, mainly via CI automation and GH pull requests. That machinery is somewhat beside the point, and there should not be much surprise there
https://github.com/vados-cosmonic/cm-testsuite
You might be particularly interested in outputs of the gather-updates action:
https://github.com/vados-cosmonic/cm-testsuite/actions/workflows/gather.yml
And the distribute-updates action:
https://github.com/vados-cosmonic/cm-testsuite/actions/workflows/distribute.yml
(many of these runs are dry runs, but it should be clear the effects)
For an example of relevant issues and PRs affected by automation:
ISSUE: [Enroll] vados-cosmonic/cm-testsuite-test-source
ISSUE [Enroll] vados-cosmonic/cm-testsuite-test-receiver
PR: feat(registry): enroll vados-cosmonic/cm-testsuite-test-source
PR: feat(registry): enroll vados-cosmonic/cm-testsuite-test-receiver
PR: feat(corpus): import tests from vados-cosmonic/cm-testsuite-test-source
https://github.com/vados-cosmonic/cm-testsuite-test-source
https://github.com/vados-cosmonic/cm-testsuite-test-receiver
Here's an example of the kind of PR that gets made when you want to receive WAST test updates automatically:
Update tests received from cm-testsuite
The point has been brought up that integration of these tests even while automated heavily is still too heavy for some projects.
With this point in mind, we're leaning towards adding new ways of consuming the tests (and I'm open to suggestions):
These mechanisms are meant for teams that basically have their own machinery in place, and want something to slot in with the smallest amount of integration (i.e. no extra TOML or configuration of receiving/sending tests, no public repos, etc).
I'm going to be working on addressing the feedback already provided and gathering the tests we have now across various projects into the repo.
Last updated: Nov 19 2026 at 20:05 UTC