/zion

Primary LanguageRust

Zion Coverage Instrumentation

An test instrumentation tool for TypeScript, that not only tracks how often something is covered but also what test caused the coverage.

This is not a fully implemented instrumentation tool, just a POC to see if contextual coverage is viable.

Setup

  • Install rust with the wasm32-wasi target
rustup toolchain install stable

rustup target add wasm32-wasi
  • Install node dependencies
pnpm i
  • Build the coverage data schemas
pnpm -F @zion/typegen build
pnpm -F @zion/typegen-rs build
  • Build other packages
pnpm build
  • Run example tests
pnpm -F @zion/example-simple test:coverage