boost.test covered in testing frameworks rundown

http://www.gamesfromwithin.com/articles/0412/000061.html Well, some good marks but no victory. Perhaps the people involved in the library will find this useful. cheers, max This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.

"Max Chasing" <MKhesin@liquidnet.com> wrote in message news:4B6FB7F60D37D41188C300B0D022E0C003965168@exchange.lnholdings.com...
http://www.gamesfromwithin.com/articles/0412/000061.html Well, some good marks but no victory. Perhaps the people involved in the library will find this useful. cheers, max
Hi, I don't have much to say about this article, other then some statements seems questionable and many people have different priorities and requirements for testing framework. One thing needs to be spelled out though: Boost.Test *does* support fixtures. At least in a sense author using this term. Noel found proper thread in mailing list to refer, but made completely wrong conclusion from it. To implement fixtures one needs to use constructor and destructor *for fixture*. Here an example: struct my_fixture { my_fixture() { /* do initialization here */ } ~my_fixture() { /* do deinitilaization here */ } T1 obj1; T2 obj2; .... }; ... TEST( test1 ) { my_fixture fx; // test body here } TEST( test2 ) { my_fixture fx; // test body here } TEST( test3 ) { my_fixture fx; // test body here } That's all. You even got a "bonus" ( in author terms ) that it lets you declare objects used in the fixture on the stack. I admit I may had to explain it in docs/FAQ. But seems obvious in modern C++. (Actually in prerelease version of the library there were additional interfaces to support fixtures. But I dropped them later since I realized we don't really need them in C++). One thing though may worth considering: add support for fixtures on test_suite level, so that one needs to specify them once during test_suite initialization in a form of two setup/teardown methods or fixture type. I may add it next release. Gennadiy P.S. I would like to see author to apply "one assertion per test case" policy in real life. In my experience single unit test program may contain hundreds of them.

Gennadiy Rozental wrote:
"Max Chasing" <MKhesin@liquidnet.com> wrote in message news:4B6FB7F60D37D41188C300B0D022E0C003965168@exchange.lnholdings.com...
http://www.gamesfromwithin.com/articles/0412/000061.html Well, some good marks but no victory. Perhaps the people involved in the library will find this useful. cheers, max
Hi,
I don't have much to say about this article, other then some statements seems questionable and many people have different priorities and requirements for testing framework. One thing needs to be spelled out though:
Gennadiy, did you notice that you can respond on the article site, at the bottom of the page? -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

Gennadiy Rozental wrote:
Gennadiy,
did you notice that you can respond on the article site, at the bottom of the page?
Since archive doesn't work, I had to copy/paste my comments there.
What archive doesn't work? -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

"David Abrahams" <dave@boost-consulting.com> wrote in message news:crn449$cl5$2@sea.gmane.org...
Gennadiy Rozental wrote:
Gennadiy,
did you notice that you can respond on the article site, at the bottom of the page?
Since archive doesn't work, I had to copy/paste my comments there.
What archive doesn't work?
http://lists.boost.org/MailArchives/boost/bydate.php Actually this is my primary interface for reading mailing list. Gennadiy

Gennadiy Rozental wrote:
"David Abrahams" <dave@boost-consulting.com> wrote in message news:crn449$cl5$2@sea.gmane.org...
Gennadiy Rozental wrote:
Gennadiy,
did you notice that you can respond on the article site, at the bottom of the page?
Since archive doesn't work, I had to copy/paste my comments there.
What archive doesn't work?
http://lists.boost.org/MailArchives/boost/bydate.php
Actually this is my primary interface for reading mailing list.
OSL is working on it. I use GMane's archive; it works far better anyway. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

What archive doesn't work?
http://lists.boost.org/MailArchives/boost/bydate.php
Actually this is my primary interface for reading mailing list.
OSL is working on it. I use GMane's archive; it works far better anyway.
It still doesn't work. Is it difficult to fix? Gennadiy

Gennadiy Rozental wrote:
What archive doesn't work?
http://lists.boost.org/MailArchives/boost/bydate.php
Actually this is my primary interface for reading mailing list.
OSL is working on it. I use GMane's archive; it works far better anyway.
It still doesn't work. Is it difficult to fix?
How would I know? -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

"David Abrahams" <dave@boost-consulting.com> wrote in message news:cs6p0i$is0$1@sea.gmane.org...
Gennadiy Rozental wrote:
What archive doesn't work?
http://lists.boost.org/MailArchives/boost/bydate.php
Actually this is my primary interface for reading mailing list.
OSL is working on it. I use GMane's archive; it works far better anyway.
It still doesn't work. Is it difficult to fix?
How would I know?
Is there anybody responsible for this?

Gennadiy Rozental wrote:
"David Abrahams" <dave@boost-consulting.com> wrote in message news:cs6p0i$is0$1@sea.gmane.org...
Gennadiy Rozental wrote:
What archive doesn't work?
http://lists.boost.org/MailArchives/boost/bydate.php
Actually this is my primary interface for reading mailing list.
OSL is working on it. I use GMane's archive; it works far better anyway.
It still doesn't work. Is it difficult to fix?
How would I know?
Is there anybody responsible for this?
Yes; the guys who administer the mailing list machine and software at OSL. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
participants (3)
-
David Abrahams
-
Gennadiy Rozental
-
Max Khesin