Renaming Test Suites

Test suite files should not be renamed. Doing so could prevent C++test from identifying and running the test suite.

Renaming Test Cases

To rename a test case:

  1. In the project tree, locate the test suite file that contains the test case(s) you want to rename.
  2. Double-click the project tree node that represents the test suite file. The file will open in an editor.
  3. Modify the test suite header as shown in the following examples:
  4. Modify the test suite definition as shown in the following examples:
  5. Save the modified file.

Updating Test Suites for a Renamed Source File

If the name of the tested file changes:

  1. In the project tree, locate the test suite file that contains the test case(s) you want to rename.
  2. Double-click the project tree node that represents the test suite file. The file will open in an editor.
  3. Modify the CPPTEST_CONTEXT and CPPTEST_TEST_SUITE_INCLUDED_TO macro values.
  4. Save the modified file.