Posts tagged: software-engineering
A Complete Guide to Vitest Global Setup and Teardown
By Ben Houston, 5 Minutes Read, 2025-11-19
When writing tests with Vitest, you often need to perform setup tasks before all tests run and cleanup tasks after all tests complete. This is where Vitest's globalSetup feature comes in handy.
Tags: software-engineering, testing
The Missing Metric in Software Testing: Spec Coverage
By Ben Houston, 4 Minutes Read, 2025-04-27
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.
Tags: software-engineering, testing