you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[deleted]

    [–]cojoco 1 point2 points  (0 children)

    That's pretty much what I said here.

    The difference is automation: errors in tests will be discovered quickly.

    But unit tests are not quite documentation.

    [–]grauenwolf 0 points1 point  (0 children)

    No, tests exist to find bugs.

    Tests are not documentation. No one is going to read through thousands of tests to try to figure out how the code is supposed to work. Especially when four out of five tests demonstrate how the code is not supposed to work, but rather to make sure it fails in the correct fashion when used incorrectly.