parasoft:cpptest

Description:

C++Test execution task

Import Attributes

NameTypeDescription
importArgumentStringArgument for the -import option Default value is: "."
bdfStringCreates C++test projects from build data files (.bdf).
ccsStringCreates projects from a TI Code Composer Studio project(s)
dspStringCreates projects from a Microsoft Visual Studio 6.0 project file
ewpStringCreates projects from IAR Embedded Workbench projects
gpjStringCreates projects from Green Hills project
hewStringCreates projects from High-performance Embedded Workshop projects
uvStringCreates projects from Keil uVision3 projects
vcpStringCreates projects from Microsoft eMbedded Visual C++ 4.0 projects
wpjStringCreates projects from Wind River Tornado project

Execution Attributes

NameTypeDescription
buildscriptStringExecutes the specified build script prior to any testing
cleanbooleanPass clean to the command line client Default value is: true
configStringSpecifies test configuration (ie. config=source://configuration)
dataFileSpecifies the location of the workspace directory to use Default value is temporary directory
failOnViolationbooleanFail the build by returning a non-zero exit code if any violations are reported
filtersStringAllows the include and exclude parameters to be specified in a properties file
ignoreErrorsbooleanSet to true if you don't want to kill the build when an error occurs
cpptestHomeStringSpecifies home directory of C++test
cpptestSkipbooleanSkips C++test execution
cpptestTimeoutlongTimeout in seconds Default value is: 1800
localsettingsFileReads the local setting file for global preferences, such as Report Center, email, and Team Server settings Default value is: $basedir/localsettings.properties
noImportbooleanSkip the workspace import stage Default value is: false
nobuildbooleanPrevents rebuilding the project before testing it
prefsStringReads the preference URL to import Eclipse workspace preferences
publishbooleanPublishes the reports to the Team Server
reportStringRelative path to destination for report file Default value is: "report/parasoft/test.html"
showdetailsbooleanPrints detailed test progress information
skipbooleanSkip Parasoft Test
solutionStringSpecifies the location of the solution to use
testStringAdd this pattern to the includes list, useful for debugging tests
vsStringSpecifies which version of Visual Studio should be used.

Attributes as nested elements

excludeStringSpecifies packages and classes to be excluded during testing
importStringArgument for the -import option
includeStringSpecifies the packages and classes to be included during testing
projectDescriptionProjectDescriptionProjects to test
resourceStringSpecifies the path to the workspace resource to test

Parameter Details


resource:

Specifies the path to the workspace resource to test

  • Type: String
  • Required: No
Example
---
  <parasoft:cpptest>
    <resource>Project1</resource>
    <resource>Project2</resource>
  </parasoft:cpptest>
---

import:

Specifies location of the project(s) to be imported, allows multiple projects to be imported separately

  • Type: String
  • Required: No
Example
---
  <parasoft:cpptest>
    <import>src/project1/import>
    <import>src/project2</import>
  </parasoft:cpptest>
---

include:

Specifies packages and classes to be included during testing

  • Type: String
  • Required: No
Example
---
  <parasoft:cpptest>
    <include>org/example/**/MyClass</include>
    <include>org/example/**/MyUtilClass</include>
  </parasoft:cpptest>
---

exclude:

Specifies packages and classes to be excluded during testing

  • Type: String
  • Required: No
Example
---
  <parasoft:cpptest>
    <exclude>org/example/**/MyClass</exclude>
    <exclude>org/example/**/MyUtilClass</exclude>
  </parasoft:cpptest>
---

projectDescription:

Projects to test

  • Type: ProjectDescription

    Attributes

    • basedir, directory of the project root
    • name, optional name of the project, defaults to directory name of basedir
    • overwrite, overwrite existing eclipse project files
  • Required: No
Example
---
  <parasoft:cpptest>
    <projectDescription basedir="src/proj1" name="MyProject" />
  </parasoft:cpptest>
---