Proper Compiler Configuration is CriticalIn most cases, C++test needs to invoke the compiler and linker in order to perform static analysis and runtime testing tasks, which commonly involve preprocessing, compiling, and linking programs. To access C++test’s full functionality, the machine where C++test is run must have the complete development environment and compiler tool chain. |
Before you can test code with C++test, it must be available in a C++test project within the workbench (a temporary work area—unique for each user). This involves:
cpptestscan
utility to collect information from the build process, then have C++test automatically create a project based on the collected information. Projects can be created from the command line or using a GUI wizard. For details, see Creating a Project Using an Existing Build SystemThese two tasks need to be performed only once. After one team member creates and configures a project, it can be checked into source control, then reused by all developers working on the code as described in Sharing Projects.
C++test projects define a group of source and header files that are built to a single binary result: library or executable.Each project maps to a directory in the file system. All files and folders from this directory are a part of the project and are visible as the project subtree. Additionally, projects may contain linked folders that point to external locations in the file system. All files and subfolders of such locations are visible as a part of the project.Projects can be created :
The C++test Standalone GUI is built using Eclipse. Consequently, some of the general Eclipse capabilities for creating and organizing projects are used in C++test. For more details about these Eclipse capabilities, see the relevant topics in the Eclipse Workbench User Guide (available by choosing Help> Help Contents, then opening the Workbench User Guide book).Some Eclipse functionality is not available for C++test projects because they are not complete Eclipse projects. For example, C++test projects will not support Build or Run options from the Eclipse menu.
Linked folders are defined as absolute paths in project definition ( |
Tip - Where to Create a Project?Creating a project in the root directory of the source files structure is recommended if the project should be shared and C++test files/folders can be added to the project root directory. If C++test files cannot be added to the original file structure, then the project should be created in the workspace/external location and linked folders should be created to include the source/header files locations in the project. |