Designer 10.15 | webMethods Unit Test Framework Help | Code Coverage Analysis | Coverage Analysis in Headless Mode
 
Coverage Analysis in Headless Mode
The Test Suite Executor (see Creating a Test Suite Executor ) provides the Ant build file run-composite-runner.xml with necessary tasks and properties to start a test. Use the task composite-runner-all-tests for headless test execution to generate code coverage analysis report.
Specify the following properties:
webMethods.test.setup.profile.mode
Set to Coverage to generate coverage report. Set to None for regular test execution.
webMethods.test.scope.packages
Specifies the list of comma separated target Integration Server package names. This Defines the full scope for the coverage analysis and percentage calculation.
Example: SampleTestSuite,SampleTestSuite1
Alternatively, you can declare values for this property by referencing a file containing the actual data, which helps improve the formatting of the run-test-suites.properties file when providing large values.
The format for declaring values is as follows:
webMethods.test.scope.packages=reference\:file\:packages.properties
where packages.properties is the file that contains a list of packages.
For example:
webMethods.test.scope.packages=​SampleTestSuite,​SampleTestSuite1
webMethods.test.profile.result.includeExecutionModelReport
Set to true to generate the Execution Model code coverage report. Set to false (default) to generate the regular code coverage report.
webMethods.test.profile.result.includeServiceLevelReport
Set to true to generate the Service Level code coverage report. Set to false (default) to generate the regular code coverage report.