as-pect is a test runner for AssemblyScript projects. It compiles AssemblyScript test entries to WebAssembly, runs them, reports results, and supports snapshots, coverage, WASI, and reporter output.
The canonical documentation lives in GitBook and is mirrored in this repository under docs/:
- Getting started
- Writing tests
- Configuration
- CLI
- Snapshots
- Coverage
- Reporter overview
- Contributor workflow
Read the hosted docs at as-pect.gitbook.io/as-pect.
npm install --save-dev @as-pect/cli assemblyscript
npx asp --init
npx asp --summaryasp --init creates the standard as-pect.config.js, as-pect.asconfig.json, and assembly/__tests__/ starter files. See Getting started for the full flow.
This monorepo contains the CLI, AssemblyScript runtime, core Test suite/reporting model, snapshot package, transform package, shared reporter-output helper, and built-in file reporters.
For package boundaries, see Package architecture. For exact public types, see Types overview.
npm install
npm test
npm run changesetSee Contributor workflow and Release process for maintainer details.
To contribute, see CONTRIBUTING.md.
Thanks to the AssemblyScript team and all as-pect contributors for making this project possible.
