I want to make unit test in code::blocks,
Is there convinent way to plug CppUnit into the IDE.
Or is it support some other test framework?
Thanks a lot
HI,
I think you should be able to use it.
I myself am using : UnitTest++ http://unittest-cpp.sourceforge.net/.
It is a very good framework.
I will write an article about it, you can run the tests as post build steps and when a test fails you can click in the build messages list to jump to the failing test.
Just give me a few days to write the article ;-)
Hello,
I would like to use CppUnit with Codeblocks as well (or perhaps UnitTest if it's easier to make it work).
Is there any article about it by now?
best regards
L J
shame on me :-(
Will try to do it in the coming weeks :oops:
Hi killerbot,
that would be great!
best regards
LJ
Hello killerbot,
How do things look?
have made some progress !!! Not completely finished yet.
Hello,
how do you get ahead with the article?
regards
LJ
Tutorial for unittest++:
0. Read the docs first :lol: at http://unittest-cpp.sourceforge.net/UnitTest++.html
1. Create console project
2. Change the code in main.cpp to look like this:
// test.cpp
#include <UnitTest++.h>
TEST(FailSpectacularly)
{
CHECK(false);
}
int main()
{
return UnitTest::RunAllTests();
}
3. Add the include paths to the unittest++
4. Add linking options
5. Compile and run it...
6. If errors goto 3/4
7. Add a post build step for the test project to run the resulting executable
8. Write you tests and have fun.
If you know how to setup projects with codeblocks you won't have problems with this.
Best regards
thanks for that instruction :D
Quote from: Mr_LJ on September 03, 2009, 11:24:11 PM
thanks for that instruction :D
--> Isn't that something for the WiKi?
Probably, but where to put it?
Quote from: oBFusCATed on September 04, 2009, 01:28:08 PM
Probably, but where to put it?
How about a new sub-section here:
http://wiki.codeblocks.org/index.php?title=User_documentation#Third-party_libraries
(Scroll down untilo you see the section "Third-party libraries ".)