Question
Pega unit test - Code coverage with in a rule type
Hi Team,
We have looked at the Rule Coverage Dashboard supported in Pega 7.3.1. Part of the same dashboard, is there a way to understand whether all the lines of code with in a rule are covered?
For ex: Data Transform
If DT has a when, otherwise when, and Otherwise are configured then minimum of 3 scenarios can be covered for each condition.
1 for when, 1 for otherwise when, and 1 for otherwise
Now, do we have a way to know whether all the 3 scenarios are covered for above DT?
Thanks,
Prakash
Sadly, no. PegaUnit doesn't include code coverage in Pega 7.3.1, nor does it in Pega 7.4. It only checks whether there is a relationship between the rule and a test case.
I'm keeping my hopes up for Pega Infinity ;-)
Regards,
Michel Kraaij - van den Berg
Valori ~ Innovation starts with testing