Posted: 6 Jan 2020 12:28 EST Last activity: 6 Jan 2020 15:03 EST
Pega rules Unit Testing Automation
Based on PDN information mentioned in the link (https://community.pega.com/knowledgebase/articles/devops-release-pipeline-overview/pega-unit-testing), We understand that Pega supports unit test creation and unit rules testing for the below rule types only. So, we can create the unit test rule for listed rule types and test them individually. However, if we have to automate any scenario or a complete case process flow, how can we achieve it as there will be various types of other rules involved? Please advise.
***Edited by Moderator Marissa to update SR Details***
In creating the test for the casetype or process, the referenced rules as part of that process will also be invoked. If a referenced rule is not directly supported by PegaUnit, that will not matter as the rule will still be executed as part of the casetype or process execution and thus you will get the necessary testing coverage.
If you are looking to truly unit test a referenced rule that is not directly supported by PegaUnit, you can always wrap that rule with an Activity or a Data Page and then author the test against the wrapper rule.