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 ;-)
I was lucky to attend PW this year. One of the sessions I've enjoyed most was DevOps made Easy.
One of the important ideas introduced on this session, regarding application testing, was using external tools for this purpose (~13th minute of the video).
In many projects I've participated in last couple of years we were using external tool - Ninja for implementing unit and integration tests. As a part of Ninja team, I have some insights about version 2.1 that is planning to be release by the end of this summer. This release will contain at least the following:
Code Coverage for Ninja Unit Testing that will be capable of precise capturing what parts of which rules are covered with unit tests.
New component - Ninja Metrics. This component will capture important metrics about your "code" and export them to Continuous Inspection tool (such as SonarQube).
So, if code coverage is important for you, you may try using external tools for writing unit tests.
Posted: 5 years ago
Posted: 12 Jul 2018 15:07 EDT
Gopinath Khatri (Gopinath Khatri)
Associate Manager QA