RE: examples on webpage.
"Cremin, Patrick" <[email protected]> Wed, 12 Feb 2003 16:00:17 -0800
| Newsgroups | gmane.comp.lib.cppunit.devel |
|---|---|
| Message-ID | <25BCE2B1149CDA4E9758CC08E70A20A9EB5D7A@eahq-mb1> |
I assume you are referring to the CppUnit Cookbook? http://cppunit.sourceforge.net/cppunit_cookbook.html#cppunit_cookbook If you take the code directly from that site I believe it will compile. Also, in the CppUnit source you downloaded look in cppunit\examples. There you will find a examples.dsw. Open that up and check out 'hierarchy classes' which has a Boardgame with CppUnit working on it. I wouldn't expect too much to be done about additional documentation. CppUnit is free, and additional docs will probable be developed by end users like me and you. Take a look at http://www.iunknown.com/Articles/fog0000000025.html For another example (gets into how to set up your project which can be a pain) Trust me though, I am a moron and I was able to get this working. Even added additional assertions and no operation test results. Good Luck, Patrick Cremin -----Original Message----- From: Thomas Zander [mailto:[email protected]] Sent: Wednesday, February 12, 2003 5:23 PM To: [email protected] Subject: [Cppunit-devel] examples on webpage. Hi, trying to follow your examples on the website I was confused and disillusioned by the bad sourcecode you provide. I understand that your page wants to explain the concepts, but it basically lacks one thing; producing a compiling file that I can actually run... Ok, lets start my argument again; and let me get to the problem in a bit. I want to try cppunit. So the first thing I do is I find out about the assertions you provide and then I want to get a really simple test running and compiling. This part is essential and if this does not work I want to spend 0 time trying to figure out other ideas like suite etc. The page I found provided a number of sourecode samples but none had a full listing that actually compiled. And reaching the end I found a main method, but that uses a lot of concepts I never heard of; but I can't understand the concepts without seeing a running example of a test. Confused? So was I, the problem with your pages is that I can only understand then when I know what it is you explain. Please provide for _EACH_ example code a single file that contains the whole test; including main and everything. Preferrably with an example gcc (or similar) call at the top. It is sooo much easier to understand what you are saying when I have the option to see it in the context of the whole... If I can just get one file to actually compile I might start using cppunit! Many thanx! ps. a page describing the differences between junit and cppunit would also be great. -- Thomas Zander ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Cppunit-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cppunit-devel ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf