...
- In the project tree, locate the test suite file that C++test generated.
- By default, automatically-generated test classes are saved in the
tests/autogenerated
directory within the tested project. - To check or change where C++test is saving the test suite files, open the Test Configurations dialog, select the Test Configuration that was used for the test run that generated the tests, then review the value in the Generation> Test Suite tab’s Test suite output file and layout field (see Test suite tab for details).
- By default, automatically-generated test classes are saved in the
- Double-click the project tree node that represents the generated test class. The generated test class file will open in an editor.
...
CPPTEST_CONTEXT:
Specifies which file the test suite tests. Only one source file can be speci-fiedspecified. If no context is specified, the test suite will be executed whenever the project is executed.- When a source file or directory is selected in a project tree before test execution is started, C++test scans all test directories specified in the Test Configuration’s test search path. All test suites that match the selected context will be executed.
- If the entire project is selected, all test suites on the test path will be executed.
- If a test suite or single test is selected, the CONTEXT macro is used to back-trace to the source file to which this test suite is related. Only the selected test suite(s) will be executed.
CPPTEST_TEST_SUITE_INCLUDED_TO
: Indicates that it’s an included test suite and specifies which file the test suite source will be included when the test executable is built. When you want to include additional files, use the #include directive.
...
For a list of macros that can be used in test cases, see see C++test API Documentation.
...