Unit test causes rule to commit data to database
I'm running a unit test on an activity that saves and then commits an object using "call commitWthErrorHandling" step. The unit test suite will execute this unit test daily. Is it possible to prevent or simulate the commit while also testing the activity rule is doing what it's suppose to do?
I believe you have a PegaUnit to test the activity which is committing to database. Clean up section can be leveraged to cleanup the test data or any other data created by rule under test.
Check the checkbox "Clean up the test data at the end of run" to automatically cleanup any work or data objects created during test run. Alternatively a Data Transform or an activity can be called in cleanup section to manually cleanup.