Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Test configurations define how DTP Engines test and analyze code, including which static analysis rules are enabled, which tests to run, and other analysis parameters.

...

C/C++test DTP Engine

...

 ships with built-in test configurations, but users can create and store their own test configurations in the DTP server. You can access the DTP server via the DTP plug-in. If you have administrator-level access in DTP Report Center, you can also create test configurations directly in DTP (administration> Engines> Test Configurations). 

User-defined test configurations that are stored in DTP can be downloaded from the DTP server and stored in the [INSTALL_DIR]/configs/user directory as *.properties files. 

...

You can specify which configuration will be run in one of the following ways:

  • Run 

    Conditional Contentproduct: (cpptest)product: (cpptest)sv-attr:0A01020401598D973E6641760F8AF4E50A01020401598D973E6749C5267CE6FE

    cpptestcli

    cpptestcli with the -config switch and specify a built-in, user-defined or  DTP-hosted  test configuration:

    Code Block
    -config "builtin://Recommended Rules"
    -config "user://Foo Configuration"
    -config "dtp://Foo Team Configuration" 
    -config "dtp://FooTeamConfig.properties"

    You can also provide a path or URL to the test configuration .properties file:

    Code Block
    -config "C:\Devel\Configs\FooConfig.properties"
    -config "http://foo.bar.com/configs/FoodConfig.properties"

    For example, your command line may resemble the following:

    Conditional Contentproduct

    :

    (cpptest)product: (cpptest)sv-attr:0A01020401598D973E6641760F8AF4E50A01020401598D973E6749C5267CE6FE

    Code Block
    cpptestcli -config "builtin://Recommended Rules" -compiler gcc_3_4 -input cpptest.bdf
  • In the .properties file, specify the default configuration that will be run when the -config option is not used:

    Conditional Contentproduct: (cpptest)product

    :

    (cpptest)sv-attr:0A01020401598D973E6641760F8AF4E50A01020401598D973E6749C5267CE6FE

    Code Block
    cpptest.configuration=user://Configuration Name

Viewing Available Test Configurations

...