You are here: Record management > Rule testing > PegaUnit rule testing

PegaUnit rule testing

You can use PegaUnit testing to quickly and easily create tests for your Pega 7 Platform applications.

Note: Before you begin, your application must be configured to support rule testing. See Creating a test ruleset.

After you develop rules, you can unit test them and then convert them to test cases to validate that your application data is loaded correctly by comparing expected property values to the actual values returned by running the rule.

Note: It is recommended that you create PegaUnit tests for a strategy rule using the procedure in Configuring a single case run. This testing method provides more robust testing features.

You can automate testing of your PegaUnit test cases to reduce the effort that is required to test records and to ensure consistency in testing. For example, if you modify a rule in a test case, you can apply rule changes to all test cases automatically.

You can use PegaUnit rule testing on the following types of rules:

You can use the Automated Testing landing page to open, view, and run test cases in your application. Open it by selecting Designer Studio > Application > Automated Testing. You can also perform these tasks in the Test casestab on the rule form.

You can also use the Execute Tests service, which is run by a continuous integration (CI) tool, to run all the PegaUnit test cases in your application so that you can validate the qualify of your builds after every build run. For more information, see the Testing Applications landing page on the PDN.