|
Boost Users : |
Subject: Re: [Boost-users] [Boost.Test] C++ Unit Tests with Boost.Test, Part 1
From: Richard (legalize+jeeves_at_[hidden])
Date: 2009-07-06 17:35:01
[Please do not mail me a copy of your followup]
boost-users_at_[hidden] spake the secret code
<h2s7c1$gik$1_at_[hidden]> thusly:
>In Part 2, you recommend using the CHECK macros by default. Being a
>long-time Boost.Test user (as well as a long-time TDD:er) I strongly believe
>that by default one should always use the REQUIRE variety of the Boost.Test
>macros, for a couple of reasons [...]
I'll see about getting that updated soon.
>People will probably object to the above, saying that the want to test
>multiple things in the same test, and want to see the result of all "related
>verifications". [...]
If you read through the whole series, you'll see that each test case
tests one thing and one thing only. I link to xUnit Test Patterns
book online, which has quite a bit to say about test smells.
There's so much to cover on this subject and the posts were already
getting a bit lengthy (originally I thought it would be 1 blog post!).
Thanks for the feedback.
-- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download <http://www.xmission.com/~legalize/book/download/index.html> Legalize Adulthood! <http://legalizeadulthood.wordpress.com>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net