Viewing unit tests without rules
On the Application: Unit testing landing page you can display a list of unit tests that are not associated with any rule and export this list to an XLS or a PDF file. You should deactivate these unit tests because they will always fail.
In the header of Dev Studio, click.
Click Tests without rules.
Generate and export a report that contains a list of test cases that are not associated with any rules.
- To export to PDF format, click
- To export to XLS format, click
- Creating unit test cases for rules
For most rules, you can create a reusable test case by converting a unit test to a test case, configuring case details, and then defining expected test results with assertions (test conditions). When the test case runs, the test results are compared to the expected results defined for the rule’s assertions. If the test results do not meet the defined assertions, then the test fails.
- Viewing test details and results on the Application:Unit testing landing page
On the Application: Unit testing landing page you can run unit test cases and test suites that are not marked as disabled, and view reports to check the quality of your application to identify rules that did not pass unit testing.
- Viewing unit test reports
View a graph with test pass rate trend data, a summary of Pega unit tests that were run, and an overview of Pega unit test compliance for currently included applications on the Reports tab on the Unit Testing landing page.