bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Test framework


From: Chad Yates
Subject: RE: Test framework
Date: Tue, 25 Mar 2003 09:45:13 -0800

Onno,

There are the beginnings of a test suite using cppunit that I contributed at
the beginning of the year.  All the files are in the tests directory along
with the standalone test (that need to be converted to unit tests someday).
ccxx_tests.cpp is the runner that runs all the unit tests.  the files
prefixed like Test_ are the individual suites for the classes that have unit
tests.  take a look at them for how to structure the tests.

You might search the archives as there was a lot of discussion dec 2002, jan
2003 about it.

To enable compilation of the unit tests you have to configure with an extra
option for now.

./configure --with-cppunit

also there are a few unit tests (specifically the persistence engine ones)
that don't yet work on linux for some reason (I haven't had a chance to find
out why).

It would be wonderful if you wrote test cases as you learn the api.  I was
doing some of the same.  just remember to report any bugs you find while
writing the tests, as I'm sure you will (I did). Also feel free to make test
cases out of the functionality in some of the stand alone test programs too.

Cheers,

Chad

> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden Behalf Of
> Onno Kortmann
> Sent: Monday, March 24, 2003 5:49 PM
> To: address@hidden
> Subject: Test framework
>
>
> Hello!
>
> In order to get familar with the api of common c++, I wanted to
> write test
> cases.
> Is there a structure for cppunit-testcases?
> In tests/, I find some threading/tcp-connection-tests, but not more.
>
> Regards,
>
> Onno
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp





reply via email to

[Prev in Thread] Current Thread [Next in Thread]