Base Source Directories for VectorCAST Cover Environments
VectorCAST 2020 introduces a new feature to enhance usability when creating and using Cover environments alone or as a System Testing environment. This enhancement makes it easy to:
- Add source files efficiently after specifying a "base source directory"
- Move entire Cover environments to a new location more easily
- Syncronize the Cover environment after a repository update
- Make changes to the environment in the new update wizard
New Environment Wizard
The Create New Cover Environment wizard now enables you to specify a Base Directory, or source root directory, of source files to be added to the Cover environment. The path to the base directory is saved in the environment script (.ENC) which means only a single change is needed if loading the environment script in a different directory. Additional base directories can be specified as needed.
In the Create New Cover Environment wizard Step 3, Locate Source Files, configure a directory to serve as the Base Directory, such as the root of your source code repository. This directory path can be an environment variable, e.g. $(ENV_VARIABLE), a relative path, or an absolute path. After specifying a Base Directory, select sub-directories and source files to include in the new environment. Deselecting specific source files excludes them from the environment. The Show Header Files button allows you to include header files in the list of source files.
Include files are still needed for the pre-processor, regardless of whether or not it should or should not be in the Cover environment. The compiler will need to know where all the necessary files are.
Figure 1: Include Directories are Still Required for Pre-process
Update Environment Wizard
After synchronizing source file changes in your repository from version control, you can quickly refresh the source files in the Cover environment using the Update Environment Wizard. From the Toolbar, select Environment | Update Environment. In Step 2, Locate Source Files, any sources detected in the selected directory are displayed. Select or deselect directories and source files to include or exclude them from the environment. Step 3 Summary displays the files to be added and removed from the environment based on your changes.
For more information, see VectorCAST/QA User Guide "Creating a System Testing Environment."