Testing Rule Set Coverage Along the Way

When rule tests are written, a rule set coverage tool can be configured and a HTML report produced to show how much coverage the tests are providing. To capture coverage data while running tests (or an online application), set the environment property curam.creole.coverage.logfile (in Bootstrap.properties ) to the location of a file. A line containing coverage information will be appended to the file whenever an expression is calculated. To clear the coverage data, just delete this file.

To create a coverage report, run the following target:

build creole.report.coverage -Dfile.coverage.log=(file location)

A simple color-coded drillable report will be written to .../EJBServer/build/svr/creole.gen/coverage/index.html . For detailed information on testing your rules, see the Cúram Express Rules Reference Manual.