Re: [Cppunit-devel] Added cppunittest examples...
Brought to you by:
blep
From: Bastiaan B. <bas...@li...> - 2001-06-01 22:02:24
|
Baptiste Lepilleur wrote: >I needed something to test the TestListener, and a while ago I suggested >creating unit tests for cppunit. > >Well, this is done. I added a new example named cppunittest. It implements >unit test for TestCaller and TestListener. There is also a graphical test >runner hidden in examples/msvc6. > >You will need to add a make file for unix though. > Done. > > >I used only cppunit features that are not too advanced (no template method, >no RTTI) to write the unit test. > Both the TestCallerTest and TestResultTest do rely on RTTI: they use the default constructor of TestBuilderSuite, which only exists if CU_USE_TYPEINFO has been defined. I've changed these to use the constructor with the name parameter. Test results on x86 RH Linux 7.1 i with g++ 2.96 RH 81 are 10 times OK. > >I think that project is (will become) an excellent example since it >implement some real live test! > >So what do you think ? > yes, I like it! It's much more interesting than the hierarchy example. Thanks, Bastiaan > >Baptiste. > >--- >Baptiste Lepilleur <gai...@fr...> http://gaiacrtn.free.fr/index.html >Author of The Text Reformatter, a tool for fanfiction readers and writers. >Language: English, French (Well, I'm French). > > >_______________________________________________ >Cppunit-devel mailing list >Cpp...@li... >http://lists.sourceforge.net/lists/listinfo/cppunit-devel > |