← Back to Library

Separate Failed Assertions from Unexpected Exceptions?

Separate Failed Assertions from Unexpected Exceptions?

By Kent Beck

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…

Read full article on Software Design: Tidy First? →