Testing and code coverage
-
Hi all,
im sorry i dont speak german, i hope you can help me out tho.
Ive been looking around on the internet for a good testing framework. Ive noticed that there are several test frameworks for C++ around and it seems like CPPUnit is the most commonly used test framework.the thing is im looking for a way to:
* unit test my code
* see the code coverageim looking for a IDE or a plugin for an IDE which could at least run the unit tests and give some visual feedback. However i have had no luck....
does anybody know a good tutorial for setting up a test environment like this?? or could you please help me out a bit
thanks in advance
Raymond
Reply With Quote
-
Hello Raymond.
CPPUNIT, CXXUNIT friends are all quite good. Though I find both of these too unflexible and too bloated. Setting up testsuites is difficult... you really can't compare it to solutions like NUnit or JUnit.If you'd like to use a better solution, look at the "Projekte-Forum". Look for a thread by MrN about a testing framework named Test Soon.
It's very lightweight and easy to use, my recommendationThe other thing you asked about, code coverage, is a little harder to perform. Without those fancy tools such as reflection it's hard to accurately trace a program run. I don't know about anything like that for C++. Maybe you'll find valgrind or gdb useful if you're on Linux.
-