Using CDD
Revision as of 05:45, 28 January 2008 by Aleitner (Talk | contribs) (→How to add a manual test case)
Contents
Getting Started
- First you need to make the two CDD tool windows 'Testing' and 'CDD Output' visible. Do that by going to the menu 'View -> Tools' and select 'Testing' and 'CDD Output':
- Now enable background execution and extraction of test cases. The first will cause the execution of your test cases after every compilation and the second will extract a new test case after every exception. To enable both make sure both of the toolbar buttons (marked in red) below are pressed.
How to add a manual test case
To add a manual test case simply create a new class whose name contains the word 'TEST', have it inherit from CDD_TEST_CASE and add one or several unit test routines. Make sure that all unit test routines start with 'test_'. Here is a simple example test class:
class FOO end