Skip to main content

5 posts tagged with "Testing"

View All Tags
Count the decisions in your spec

Count the decisions in your spec

· 9 min read
Mohamed Bamoh
Senior Technical Consultant & Solution Architect

Spec-driven development is a popular answer to a familiar problem: prompt an agent straight into code, and a few days later nobody can explain why the code does what it does. So instead you let the agent write the specification first, usually requirements, a design and a list of tasks, and implement from that. GitHub's Spec Kit, Kiro and BMAD are built around this flow, and most coding agents will follow it without any tool at all.

The idea is sound. The catch is how cheap the specs themselves have become. Any current coding agent can write a product requirements document, an architecture overview and twenty user stories in an afternoon. The result looks professional, with headings and acceptance criteria, sometimes even a glossary. It can still leave every important decision untouched.

Here's the kind of fragment such a run produces:

### FR-12 Discount codes
Customers can apply a discount code at checkout.
Each code can be used once. Invalid or expired codes show an error.

Count the decisions in it. "Used once" could mean once per customer or once in total. Nothing says whether a cancelled order gives the redemption back, whether the code stacks with a sale price, or what happens when two checkout requests redeem the same code at the same moment. The fragment sounds settled and settles very little.

systemd-sysext: Test Your Immutable Image Without Breaking It

systemd-sysext: Test Your Immutable Image Without Breaking It

· 5 min read
Markus Burri
Senior Software Engineer & Architect

Many systems ship as immutable, verity-protected release images with a read-only /usr. Installing packages for testing or debugging on the target is not an option, yet test environments should stay as close as possible to the release image while temporarily adding tooling such as OpenSSH, tracing or diagnostics.

The question is therefore not "how to install software," but "how to extend the system without changing the baseline." This article shows how systemd-sysext solves this, using an OpenSSH server as the example.

Readable tests

Readable tests

· 24 min read
Sebastian Hans
Senior Software Engineer & Architect

Do you like reading tests? I like reading tests. Tests tell you what the developers cared about. Good tests also tell you what the software is supposed to do. 😁 And very good tests even tell you why. In this post, I will show how you can get more out of your tests with a few simple tricks.

Reasonable-looking and wrongUnit-Testing vs. Integration-Testing

Unit-Testing vs. Integration-Testing

· 12 min read
Sebastian Hans
Senior Software Engineer & Architect

Unit-Tests und Integrationstests werden oft miteinander verglichen – und dabei meist als Gegensätze gegenübergestellt. In diesem Artikel werde ich diese beiden Testarten unter einem anderen Blickwinkel betrachten und zeigen, wie diese Sichtweise uns helfen kann, bessere Tests zu schreiben.