Recipes

Run your tests in a box

Note
This page is generated from a mock CLI, and its numbers are placeholders.

Verified against vakna 0.0.0-mock on

Run your tests with vakna shell <box> -- <command>: the test runner's output and exit code pass through unchanged, then Vakna prints how long it took.

How do I run my tests in a box?

sh
vakna shell api -- pnpm test
prints 212 passed, 0 failed ran pnpm test · exit 0 38.24s

The test runner's lines go to stdout and Vakna's line to stderr, so 2>/dev/null leaves the runner's output alone.

What did that cost?

sh
vakna receipt api
prints receipt sbx_eu1a_8s9t0v1w mocked ──────────────────────────────────────────────────────────────────────────────── started in 0.34s · from snapshot ran pnpm test · exit 0 38.24s wall clock 41.30s cost $0.004 ──────────────────────────────────────────────────────────────────────────────── without the snapshot: +8.11s of setup (8.45s per box, measured)

View as Markdown