Close popover

Table of Contents

Viewing unit tests without rules

Version:

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.

  1. In the header of Dev Studio, click Configure Application Quality Automated Testing Unit Testing .

  2. Click Tests without rules.

  3. Optional:

    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 Actions Export to PDF
    • To export to XLS format, click Actions Export to Excel

  • 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.

Suggest Edit

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.