...
cpptestcli -data "c:\MyWorkspace" -resource "ProjectToTest" -config builtin://ShouldHaveRules -publish -settings acme_policy.settings
The reports will be sent to Parasoft DTP after each batch run.
cli Usage
The general procedure for testing from the command line is as follows:
...
If you are not in the same directory as the Eclipse workspace that you want to test, you need to use cpptestcli
with the -data
option. For example, this Windows command tests the C/C++test Example project by applying the "My Configuration" Test Configuration, generates a report of results, and saves that report in the c:\reports\Report1
directory:cpptestcli -data "c:\Documents and Settings\cynthia\ApplicationData\Parasoft\C++test\workspace" -resource "C++test Example" -config user://"My Configuration" -report c:\reports\Report1
If
you are in the same directory as the workspace that you want to test, you can call cpptestcli
without the-data
option. For example, this Windows command tests the C++test Example project by applying the My Configuration Test Configuration, generates a report of results, and saves that report in the the c:\reports\Report1
directory:cpptestcli -resource "C++test Example" -config user://"My Configuration" -report c:\reports\Report1
...
Note |
---|
The |
For details on creating options files; see Settings (Options) Files.
Allows you to configure a single setting directly in the command line. Use the following format:
-property <key>=<value> -Anchor -property -property key=value
.You can use this option multiple times to configure several settings on the same command line. Earlier entries with the same key will be overwritten. For example:
-property session.tag=sa_linux -property report.dtp.publish=true -property techsupport.auto_creation=true
...