Quality
Tests — what is checked, and how much
Every suite of every repository: what it checks, how many tests, how to run it, and whether the repository's CI runs it. The counts are from a recorded run on 2026-11-16; the CI badge of each repository is the live truth.
A named test or check is one line of a suite's output; the total counts each once (the platform checks are counted once, not per target). A workload is generated input — random programs, a fuzzer, a differential run — and is described next to the suite, not added to the total. In CI says whether that repository's workflow runs the suite on every push. A suite that does not pass right now is listed with its status.
Repository
fsharp-wasm
The compiler. tests/run-all.sh runs every suite and prints one table.
| Suite | What it checks | Tests | In CI | Run |
|---|---|---|---|---|
| QuickTest | The compiler’s main regression suite: language features, collections, strings, closures, numerics, arrays; compiled once, run on Node. CI runs it three times: default, with unpacked bool[] / byte[], and with the inlining pass. | 699 | yes | bash tests/QuickTest/run.sh |
| QuickTestMulti | The same kind of test, one compilation per domain (Array, Bitwise, Closures, DU, Exceptions, Interop, List, Map, Math, Option, Primitives, Printf, Result, Seq, Set, StringBuilder, Strings), so a failure names the area that broke. Workload: 17 domains, all passing | — | yes | bash tests/QuickTestMulti/run.sh |
| Differential: .NET against wasm | Generated inputs go through the same F# functions on .NET (the reference) and as WebAssembly; the results must be identical. CI also runs it over the QuickTest and Showcase sources. Workload: 392 functions, 183 012 calls: 179 115 identical, 0 disagreements, 3 896 where both sides fail, 1 known difference | — | yes | bash tests/Differential/run-props.sh |
| Showcase | Classic algorithms and small programs end to end (see Examples). | 26 | yes | bash tests/Showcase/run.sh |
| Host interop | The host boundary: callbacks delivered later, strings and numbers across, 500 closures called and called again after a GC. | 14 | yes | bash tests/HostInterop/run.sh |
| String ABI (exports) | The module imports no wasm:js-string; the accessor exports exist; non-ASCII text round-trips; the empty string and null; a string of 10 000 characters. | 12 | yes | bash tests/StringAbi/run.sh |
| IR pass tests | Unit tests of the optimiser passes (pipe removal, partial application, shadowing, printf inlining, loop flattening), with property tests over generated programs. Workload: plus 50 000 random programs checked for equal results and unique binders | 27 | yes | dotnet run -c Release --project tests/PassTests |
| Backend harness | Backend regression suite: every scenario goes through the binary encoder and through WAT and wasm-tools; the fuzzer generates closures and compares the variants. Workload: scenarios, and a closure fuzz of 30 720 checks with 0 failures | — | yes | bash tests/BackendHarness/run.sh |
| BCL bootstrap | The base library’s exceptions and math compiled through the backend and run. | 11 | yes | bash tests/BclBootstrap/run.sh |
| Component embed | See Examples. | 39 | yes | cd examples/component-embed && bash run.sh |
| Component linking | See Examples. | 22 | yes | cd examples/component-linking && bash run.sh |
| Wasmecto tests (tests/Wasm) | A test project written with the Wasmecto framework, compiled to WebAssembly and run in Node: language core, collections, closures, a compiler pipeline smoke test. | 81 | yes | bash tests/Wasm/run-tests.sh |
Repository
fsharp-wasm-core
The F# base library of compiled programs.
| Suite | What it checks | Tests | In CI | Run |
|---|---|---|---|---|
| Libraries (Data, Ui, Edit, Icons) | JSON and numbers, typed CSS and HTML, operations and undo history, and the icons, the same tests under .NET and as WebAssembly GC; the compiler compiles them as a gate. | 49 | yes | see tests/FSharp.Wasm.Libs.Tests |
| Core tests (Expecto) | Dictionary, interfaces, math, ResizeArray, Stack and StringBuilder of the base library, under .NET with the BCL’s own types. | 90 | yes | dotnet run --project tests/FSharp.WasmCore.Tests -c Release |
Repository
fsharp-wasmecto
The test framework itself.
| Suite | What it checks | Tests | In CI | Run |
|---|---|---|---|---|
| Wasmecto’s own tests | Dictionary, math, stack and StringBuilder tests compiled to WebAssembly with the Expecto-style framework, against the whole base library, and run in Node. | 36 | yes | bash run-tests.sh |
Repository
fsharp-wasm-runtime
The browser runtime, the demos and the benchmarks.
| Suite | What it checks | Tests | In CI | Run |
|---|---|---|---|---|
| Site | The deployable site in Chromium: the landing page, the demos embedded in it, the live benchmark, every link. | — | yes | node tests/e2e/site.mjs |
| Demos | Every demo, compiled from F# to WasmGC, runs in a real Chromium and does what its source says. | — | yes | node tests/e2e/demos.mjs |
| Benchmark page | The module and the worker load, every kernel agrees with its JavaScript twin, the chart and the table show every kernel, the tooltip answers, the JSON can be downloaded. | — | yes | E2E_ROOT=site node tests/e2e/bench.mjs |
| Benchmark on Node | The same harness from a terminal; exits 1 if a result differs. | — | yes | node demos/bench/run.mjs --profile quick |
| Unit tests | Elmish, HTML, CSS and pub/sub tests written in F#, compiled to WebAssembly and run. | — | no | npm test |
| Playwright specs | Demo and web-component specs in Playwright. Workload: 21 specs defined (gallery, Mandelbrot, counter, todo, web components) | — | no | npx playwright test |
Repository
fsharp-wasm-graphics
The graphics stack: 281 tests and checks in five projects.
| Suite | What it checks | Tests | In CI | Run |
|---|---|---|---|---|
| Math | Vectors, matrices, colours, Bézier. Workload: plus 200 generated cases | 37 | yes | dotnet run --project tests/FSharp.Math.Tests -c Release |
| Unit and property | The scene graph, layout, the command protocol and the TEA runtime. Workload: 63 unit and 55 property tests | 118 | yes | dotnet run --project tests/FSharp.Graphics.Tests -c Release |
| Wasm entry | The module entry points a host calls: mount, dispatch, render, submit. | 30 | yes | dotnet run --project tests/FSharp.Graphics.WasmTests -c Release |
| Host | Hit testing, dispatch, timelines and easing, the command protocol, software-backend pixels. | 81 | no | dotnet run --project tests/FSharp.Graphics.HostTests -c Release |
| Widgets | Contrast of every theme pair (WCAG), the semantics of the widgets, the size of the targets, the keyboard (Tab order, Enter, Space, the arrows) and a button inside a scroll region. | 92 | yes | dotnet run --project tests/FSharp.Graphics.WidgetTests -c Release |
| Interact | Where a drag lands: the slots, before / after / into, the innermost slot, the threshold of a drag, Escape. | 44 | yes | dotnet run --project tests/FSharp.Graphics.InteractTests -c Release |
| Golden images | Eighteen scenes rendered by the software rasterizer and compared with PNG goldens. | 18 | yes | dotnet run --project tests/FSharp.Graphics.GoldenTests -c Release -- --compare |
Repository
fsharp-glyph-aura
Text shaping and layout.
| Suite | What it checks | Tests | In CI | Run |
|---|---|---|---|---|
| GlyphAura tests | OpenType shaping, SDF layout and glyph handling, including FsCheck property tests. | 223 | yes | dotnet test tests/GlyphAura.Tests |
Repository
fsharp-wasm-ide
The widget editor.
| Suite | What it checks | Tests | In CI | Run |
|---|---|---|---|---|
| Session test | Headless: a scripted pointer and keyboard session runs through the real hit tester and key path, the scenes are rendered by the software renderer, and the model is checked after every step; it writes the session’s screenshots. | 24 | yes | dotnet run --project tests/WidgetEditor.Session -c Release -- shots |
| Editor in Chromium | The compiled editor in a real Chromium: it draws everything on one canvas, so it is driven by pointer and key events at canvas coordinates and judged by what the canvas shows. | 20 | yes | node tests/e2e/editor.mjs |
Repository
fsharp-wasm-newsletter
The newsletter designer.
| Suite | What it checks | Tests | In CI | Run |
|---|---|---|---|---|
| Newsletter tests | The blocks, the three outputs (email, web, text), the framework profiles, the checks, the undo history, drag and drop and the library of projects (ids, names, search, the index, the date arithmetic, opening, duplicating and deleting without ever keeping a project under the id of another); under .NET and as WebAssembly GC; the compiler compiles the library and the designer as a gate. | 82 | yes | see tests/Newsletter.Tests |
| Designer in Chromium | The compiled designer in a real Chromium: dragging a block, dragging from the palette, inline editing, icons, the library of projects (new, open, duplicate, delete, search, reload, the migration of the single project of earlier versions) and axe-core. | — | yes | node tests/e2e/designer.mjs |
Repository
fsharp-wasm-backend
Server modules and the .NET reference libraries.
| Suite | What it checks | Tests | In CI | Run |
|---|---|---|---|---|
| .NET libraries | GGBP protocol, the shadow graph, reactive state, components, auth, contracts, observability. | 96 | yes | dotnet test FSharp.Wasm.slnx -c Release |
| Portable layer | The F# layer modules are built on, checked against the .NET reference: the encoding equals its bytes for 2 000 random patches; decoding bad input never raises. Seven of the tests are the shadow of the clients: the patches of 300 random steps applied in order give the server’s list. | 61 | yes | dotnet test FSharp.Wasm.slnx -c Release |
| Canvas client, in process | The canvas client against the real application in the same process: starting, adding, a second client that polls, a patch that comes twice, a gap in the patches, a server that is gone, a stale client. | 10 | yes | dotnet test FSharp.Wasm.slnx -c Release |
| Canvas client in Chromium | The compiled module against the real Ghost Todo module on the host, next to the page of the first client: typing, a click and the keyboard sent as fast as a script can, and what each client does shows on the other. | 12 | yes | bash build/build.sh --module canvas && node tests/e2e/canvas.mjs |
| Module on the host | CI compiles GhostTodo.wasm and runs it on the host of fsharp-wasm-edge at a fixed revision. Workload: 29 checks on every platform that can run on a runner | 29 | yes | see fsharp-wasm-edge |
Repository
fsharp-wasm-edge
The host that runs modules on edge platforms.
| Suite | What it checks | Tests | In CI | Run |
|---|---|---|---|---|
| Platform matrix | Unicode, patches applied to a shadow, parallel requests, a rolling log, 404 / 405 / 400, CORS, the page, the canvas client below /canvas/; where there is storage, the state survives a restart. Workload: 29 checks on 8 targets; the answers are compared: identical in 20 steps | 29 | yes | node tests/platforms/run.mjs |
| Package checks | wrangler deploy --dry-run for Cloudflare and netlify build --offline for Netlify, without an account. | — | yes | see .github/workflows/ci.yml |
| Live check | The same 29 checks against real deployments. Written and tested against local servers; no deployment exists yet. | 29 | no | node tests/platforms/live.mjs … |
| Workflow lint | The workflows themselves. | — | yes | actionlint |
Honestly
What is not tested yet
Planned, not done: we publish what exists.
Other browsers
The browser tests run in Chromium. Firefox and Safari run WebAssembly GC, but the demos and benchmarks are not tested there.
Real deployments
The host runs on eight targets in a test matrix, some of them emulations of a platform. Nothing is deployed to Cloudflare, Vercel or Netlify yet, so the live check has not run against a real address.
Accessibility
The canvas demos draw pixels and have no accessible tree. There are no automated accessibility checks yet; they come with the HTML GUI layer on the roadmap.
Found a program that does not compile?
An issue with the F# source is the best bug report: it becomes a test.