Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Unit testing decision rules

Updated on November 15, 2021

Unit test decision rules, such as tables, decision trees, when rules, map values, collections, and declare expressions.

  • Unit testing a decision table

    You can test a decision table individually, before testing it in the context of the application that you are developing. Additionally, you can convert the test run to a Pega unit test case.

  • Unit testing a decision tree

    You can use the Run Rule feature to test a decision tree individually before testing it in the context of the application that you are developing.

  • Unit testing a when rule

    You can test a when rule individually before testing it in the context of the application that you are developing. Additionally, you can convert the test into a Pega unit test case to validate application data by comparing expected property values to the actual values that are returned by the test.

  • Unit testing a map value

    You can test a map value individually, before testing it in the context of the application that you are developing. Additionally, you can convert the test run to a Pega unit test case.

  • Unit testing a collection

    You can test a collection individually, before testing it in the context of the application that you are developing.

  • Unit testing a declare expression

    You can test a declare expression individually, before testing it in the context of the application that you are developing. Additionally, you can convert the test run to a Pega unit test case.

  • Unit testing event strategies

    Evaluate event strategy logic by testing it against sample events. This option facilitates event strategy design and enables troubleshooting potential issues.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us