Software Design: Tidy First?

Separate Failed Assertions from Unexpected Exceptions?

A seemingly-minor detail of test framework design turns out to depend on context

Kent Beck's avatar
Kent Beck
Oct 16, 2025
∙ Paid

When I implemented the first xUnit framework, without much thought I recorded failed assertions separately from unexpected exceptions—failures & errors. Erich Gamma & I copied this choice when we implemented JUnit. As part of a review of testing framework design (soon to appear as Canon JUnit), I got to thinking about this decision.

One thing I like abou…

User's avatar

Continue reading this post for free, courtesy of Kent Beck.

Or purchase a paid subscription.
© 2025 Kent Beck · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture