[Cppunit-devel] CppUnit Cookbook: needs working example.
Brought to you by:
blep
From: <hel...@er...> - 2004-05-03 08:48:44
|
Hi, I have tried to use the cookbook=20 http://cppunit.sourceforge.net/doc/1.8.0/cppunit_cookbook.html but i=20 have problems. First of all, I'm not very good at C++, so it's difficult for me to put=20 together the little pieces in the cookbook into a working example. It seems that the cookbook is incomplete. From what I understand, the=20 steps are: write (parts of) the program to be tested (can be saved for=20 later), write unit tests, collect tests into test suites, create a test=20 runner, add test suites to the runner and finally run the runner. I'm=20 not sure how to get the results from the runner. Incompleteness: * operator+ is not written. The #include statements in the cookbook are wrong, at least for my=20 Debian installation. I have a partly working file. It runs some test, but before finishing,=20 it segfaults. A print statement may turn the segfault into a warning=20 message: free(): invalid pointer 0xbffff960! Could it be something about destructors? I don't know how they work yet. Anyway, since there is no working example in the cookbook, I have more=20 problems with the unit test framework than with ComplexNumber program. Shouldn't there be a working example or cookbook in the Wiki? Best regards, Helge Stenstr=F6m |