GKRootWire
Security ICE Signs $2M Deal for Zero-Click Phone Hacking ToolSecurity Attackers Exploit Critical Elementor Pro Bug to Hijack WordPress SitesAI ChatGPT Goes Down, Serves 404 Errors to UsersAI ChatGPT and Codex Suffer Widespread OutageAI Google DeepMind's WeatherNext 3 Sharpens AI Weather ForecastingAI Google's New AI Weather Model Sharpens Storm ForecastsSecurity ICE Signs $2M Deal for Zero-Click Phone Hacking ToolSecurity Attackers Exploit Critical Elementor Pro Bug to Hijack WordPress SitesAI ChatGPT Goes Down, Serves 404 Errors to UsersAI ChatGPT and Codex Suffer Widespread OutageAI Google DeepMind's WeatherNext 3 Sharpens AI Weather ForecastingAI Google's New AI Weather Model Sharpens Storm Forecasts
Dev Tools

Kent Beck Makes the Case for Composable Tests

The programming veteran argues that breaking tests into small, reusable pieces beats writing one sprawling test per scenario.

Kent Beck, known for popularizing test-driven development and Extreme Programming, has published a newsletter piece arguing for what he calls composable tests. Instead of writing large, monolithic test cases that each set up their own environment and check one specific behavior, Beck suggests structuring tests as small, reusable building blocks that can be combined to cover many scenarios.

The pitch is that composability reduces duplicated setup code, makes tests easier to read, and lets developers assemble new test cases quickly by mixing existing pieces rather than writing from scratch. It's part of Beck's broader, long-running philosophy that good test design is itself a form of software design worth taking seriously.

The piece sparked a modest but engaged discussion on Hacker News, with developers debating how well composable test patterns hold up in real codebases versus in theory.

Why it matters: Test suites often become as unwieldy as the production code they check, and copy-pasted setup logic is a common source of that bloat. Treating tests as composable units is a practical way to keep suites maintainable as a codebase scales, especially for teams doing heavy TDD.

Sources: Hacker News