Test coverage

To improve the quality of your application, identify how many executable rules in your application are covered by tests, and track how this metric changes over time by running test coverage sessions, merging reports, and analyzing coverage trends and reports.

On the Test Coverage landing page, you can generate user-level and application-level test coverage reports by running test coverage sessions. You can also create merged reports by combining the most recent application-level reports from multiple applications. The landing page contains a chart with historical test coverage metrics, and a list of reports with the number of executable rules and their test coverage. You can use that data to analyze changes in test coverage, and to verify which rules require testing.

User-level reports contain the results of a single test coverage session that a user performs, while application-level reports contain results from multiple test coverage sessions that many users run. Merged reports contain results from multiple most recent application-level reports.
Note: Because a merged report is an instance of an application-level report, when a merged report is the most recent one for an application, it is included in the next merged report.

The following rule types are included in test coverage reports.

  • Activity
  • Case type
  • Collection
  • Correspondence
  • Data page
  • Data transform
  • Decision data
  • Decision table
  • Decision tree
  • Declare expression
  • Declare trigger
  • Flow
  • Flow action
  • Harness
  • HTML
  • HTML fragment
  • Map value
  • Navigation
  • Paragraph
  • Report definition
  • Score card
  • Section
  • Strategy
  • Validate
  • When
  • XML Stream

Improve the quality of your application by creating tests for all uncovered rules that are displayed in the coverage reports.