...
- To access the full functionality available with the Server Edition, you also need to install and configure Parasoft Team Server.
- We strongly recommend that you configure C++test preferences (for Team Server, task assignment, reporting, etc.) and team Test Configurations as described in the Configuration before you start testing.
For command line execution, you will need to ensure that the installation directory is on the path, or launch cpptest with the full path to the executable (for example,
c:\parasoft\c++test\cpptestcli.exe
).Conditional Content IDE: (VS) IDE: (VS) sv-attr:0A0102040159A975064F0FA35093CF15 0A0102040159A9821F79B94259645A41 Before you can test code with C++test, it must be added to a Visual Studio project. See Creating a Project.
- Before you perform the initial test, we strongly recommend that you review and modify project options. For details on how to do this, see Local Settings (Options) Files.
For
cpptestcli
to email each developer a report that contains only the errors/results related to his or her work, one of the following conditions must be true:You have configured C++test to compute code authorship based on source control data AND your project is under a supported source control system AND each developer’s source control username + the mail domain (specified using an options file and the
-localsettings
option described in-localsettings %LOCALSETTINGS_FILE%
) matches the developer’s email address.You have configured C++test to compute code authorship based on local user AND each user name + the mail domain (specified using an options file and the
-localsettings
option described in-localsettings %LOCALSETTINGS_FILE%
) matches the developer’s email address.
...
CLI mode is typically used to perform regular or continuous code analysis and test in conjunction with regular/continuous builds or as a part of an automatic regression test infrastructure. C++test CLI can be invoked
Conditional Content | ||||||
---|---|---|---|---|---|---|
| ||||||
on a full Visual Studio solution, or one or more projects or source files that are part of a solution. |
As part of the CLI execution, C++test can perform one or more of the following:
...
For example, a sample command line to be added might be:
Conditional Content | ||||||
---|---|---|---|---|---|---|
| ||||||
|
The reports will be sent after each batch run, and trend reports will be populated with data. The reports will also be available for viewing via Parasoft> Explore> Team Server Reports.
...
Conditional Content | ||||||
---|---|---|---|---|---|---|
| ||||||
|
-clearcmc
- Cleans Visual Studio's Component Model Cache
Conditional Content | ||||||
---|---|---|---|---|---|---|
| ||||||
Options for Testing Projects Available in the Visual Studio IDE |
Option | Purpose | Notes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Specifies the path to the workspace resource | Use multiple times to specify multiple resources. Use quotes when the resource path contains spaces or other non-alphanumeric characters. If
|
Note | ||
---|---|---|
| ||
|
...
- Reporting Settings
- Parasoft DTP Settings
- Project Center Settings
- Team Server Settings
- Licensing Settings
- Technical Support Settings
- Authorship/Scope Settings
- Source Control Settings
Conditional Content | ||||||
---|---|---|---|---|---|---|
| ||||||
|
- Miscellaneous Settings
Note | ||
---|---|---|
| ||
|
...
- The repository(n).vss.ssdir property should contain a UNC value even if the repository database resides locally.
- Be aware of VSS Naming Syntax, Conventions and Limitations. Any character can be used for names or labels, except the following:
- Dollar sign ($)
- At sign (@)
- Angle brackets (< >), brackets ([ ]), braces ({ }), and parentheses (( ))
- Colon (:) and semicolon (;)
- Equal sign (=)
- Caret sign (^)
- Exclamation point (!)
- Percent sign (%)
- Question mark (?)
- Comma (,)
- Quotation mark (single or double) (' ")
- VSS 6.0 (build 8163), which is deployed with Visual Studio 6, does not work properly with projects whose names start with a dot (.) symbol. If such a project name is used, subprojects cannot be added.
- Do not use custom working directories for sub-projects (example:
Project $/SomeProject
has the working directoryC:\TEMP\VSS\SomeProject
and its subproject$/SomeProject/SomeSubProject
has the working directoryD:\SomeSubProject
).
Conditional Content | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
File Encoding Settings
|
Miscellaneous Settings
Setting | Purpose |
---|---|
report.rules=[url_path_to_rules_directory] | Specifies the directory for rules html files (generated by clicking the For example:
The default setting is none. |
tasks.clear=true|false | Clears existing tasks upon startup in cli mode. This prevents excessive time being spent "loading existing results." The default is |
console.verbosity.level=low|normal|high | Specifies the verbosity level for the Console view. Available settings are:
|
cpptest.custom.rules.dir=[directory] | Indicates where user-defined rules are saved. |
cpptest.custom.configs.dir=[directory] | Indicates where user-defined Test Configurations are saved. |
custom.compilers.dir=[directory] | Overrides the custom compiler directory settings (found in Parasoft> Configurations> Custom compilers) and uses the defined directory to search for custom compilers |
parallel.mode=Manual|Auto|Disabled | Determines which of the following modes is active:
For more details on this and other parallel processing options, see Configuring Parallel Processing. |
parallel.max_threads=<number> | Specifies the maximum number of parallel threads that can be executed simultaneously. The actual number of parallel threads is determined by the number of CPUs, available memory, and license settings. |
parallel.free_memory_limit=<percentage> | Specifies the amount of memory that should be kept free in low memory conditions (expressed as a percentage of the total memory available for the application). This is used to ensure that free memory is available for other processes. |
parallel.no_memory_limit=true|false | Indicates that you do not want to place any restrictions (beyond existing system limitations) on the memory available to C++test |
...
example: ${workspace_name}
Outputs
Conditional Content | ||||||
---|---|---|---|---|---|---|
| ||||||
the Solution name. |
config_name
$ example: ${config_name}
...