[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Test framework
From: |
Onno Kortmann |
Subject: |
Re: Test framework |
Date: |
Wed, 26 Mar 2003 04:26:11 +0100 |
Now, some questions and comments :)
> 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.
>
Yes, I read that. I am even a bit familiiar with cppunit, using it in an own
project...
Now, my first question: Why is there crc related stuff in ccxx_tests.cpp?
> 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).
Regarding persistence, I have a rather general question: How is platform
independence of the files/streams achieved? I'm thinking of endianess. Or is
the persistence framework not used to interchange data?
(Asked that already, but it was lost in the ML traffic)
> 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).
I'll see what I can do in my little spare time...
> Also feel free to make
> test cases out of the functionality in some of the stand alone test
> programs too.
Really? Wouldn't that be somehow redundant... I mean if there is a bug in the
testcode then there is one in the democode and vice versa?
Cheers,
Onno