Test Impact Analysis determines the subset of tests which should be re-run based on the code changes between the baseline and target builds. By leveraging Test Impact Analysis, your development and QA teams can save time by running only the impacted tests.
In order to perform test impact analysis, DTP needs the following:
Static coverage data is required. Runtime coverage data is not sufficient. |
The assets that enable Test Impact Analysis are installed as part of the Process Intelligence Pack installation. Refer to the Process Intelligence Pack installation instructions for details. After installing the flow, deploy the report to your DTP environment.
The Test Impact Analysis slice ships with the Impacted Tests - Summary widget under the Process Intelligence category. This widget shows the number of tests from the baseline build that cover modified methods in the target build. See Adding Widgets for details on adding widgets.
Title | You can change the default title of the widget. |
---|---|
Filter | Choose a filter from the menu. A filter is a collection of test execution and code analysis metadata configurations that enables DTP to aggregate, subset, and analyze specific swathes of data. |
Period | Choose a range of time or number of builds to set as the scope. |
Baseline Build | The build that you want to compare to the target build. |
Target Build | The build you want to analyze. Typically, this is the latest build. |
Coverage Image | Coverage images are identifiers for the coverage data associated with a test run. The filter must be set to the correct coverage image to present information. |
The Impacted Tests - Summary widget shows the number of impacted tests over the total number of tests analyzed as well as the dates of the baseline build and the target build.
If there are any issues with the data, the widget will print an error describing the problem.
To address the errors:
Click on any part of the widget to drilldown to the Impacted Tests report.
You can click on individual tests to drill down to the Test Explorer.