How to know if your Unit Test is "right-sized"?

Posted by leeand00 on Stack Overflow See other posts from Stack Overflow or by leeand00
Published on 2010-05-13T19:34:40Z Indexed on 2010/05/13 19:44 UTC
Read the original article Hit count: 198

One thing that I've always noticed with my unit tests is that they get to be kind of verbose; seeing as they could also be not verbose enough, how do you get a sense of when your unit tests are the right size?

I know of a good quote for this and it's:

"Perfection is achieved, not when there is nothing left to add, but when there is nothing left to remove." - Antoine de Saint-Exupery.

© Stack Overflow or respective owner

Related posts about unit-testing

Related posts about language-agnostic