Skip to content
Ben is currently available for contract work for 3D & web solutions — reach out.

Back to Blog Listing

Posts tagged: testing

  • Introducing vitest-command-line

    Testing command-line tools is deceptively hard - hanging processes, lost stderr, temp file juggling, and unreadable failures. I built vitest-command-line to make CLI testing in Vitest simple and robust.

  • Vitest Global Setup

    A test database or API server needs to be ready before the first test and cleaned up after the last. Vitest's globalSetup handles both through one async function that can return its own cleanup.

  • Intent-Driven Testing

    A payment service can reach 95% code coverage while leaving retry behavior and fee disclosure untested. Intent-driven testing derives tests from declared requirements and uses specification coverage to expose those missing checks.

  • Spec Coverage > Code Coverage

    Code coverage tells you what code has been touched. Spec coverage tells you what intent has been verified. In the era of intent-based programming, it's time to stop measuring tests by lines of code and start measuring them by meaning.

  • The Rise of "Test Theater"

    AI coding assistants are excellent at generating tests with high coverage. But there is often a critical problem: they are testing that code behaves as written, not as intended. This "Test Theater" creates a dangerous illusion of quality while providing almost no real protection against bugs.