The Test Coverage page provides actionable insight into the overall testing coverage of your RUM applications. It uses data collected from the Browser RUM SDK and results from Synthetic browser tests.
The Test Coverage page presents the following information:
- The top visited web pages
- The percentage of tested RUM actions
- The number of tested and total actions
- The number of browser tests covering actions
- The number of real user interactions
Investigate test coverage for an application or view
Build a more comprehensive, accurate testing suite by identifying untested actions and linking them with real user interactions on the Test Coverage page.
To identify areas in your application or views where you should create browser tests:
- Select a RUM application from the Application dropdown menu or a view from the View Name dropdown menu.
- Click Custom to filter the data on custom actions, which are unique and offer more accurate coverage results compared to generated actions. If you want to include generated actions in the test coverage analysis, select All Actions.
- Identify gaps in your test coverage by examining the information presented in the following sections:
- Test Coverage Overview
- Displays the percentage of actions being tested, the percentage of actions being tested weighted by the number of real user interactions, and a list of top views with their counts of user sessions and browser tests, and the percentage of actions being tested.
- Untested Actions
- Displays the number of untested user actions, the number of total actions collected, and a list of top actions that real users most interact with but are not being tested.
- Tested Actions
- Displays the number of browser tests covering user actions, the number of real user interactions, and a list of top actions that real users most interact with and are being tested.
The Test Coverage page populates actions that are extensively used, and hides actions that are less commonly used in your application. For more information about the data displayed, see Synthetic Monitoring Metrics.
View replays and add tests
Use the information on the Test Coverage page to answer the following questions:
- What actions are not being tested in your application?
- What views are the most popular to your users?
- What actions need more browser tests?
- What percentage of browser tests are covering user actions?
View session replays
Click on the Play icon next to an action in the Untested Actions table to examine a recording of real user interaction in Session Replay.
Examine actions
Click on an action to access the number of tests, views, sessions, and a subset of these tests, views, and sessions that include the selected action.
Add the most popular sections of your application to a new or existing browser test so that you are alerted when key user journeys in your application are negatively impacted by a code change.
To create a test, click + New Test on the top right of the Test Coverage page. You can run tests directly in your CI/CD pipelines to ensure no regressions occur before releasing code in production.
The Test Coverage page provides actionable insight into the overall testing coverage of your API endpoints. It uses data collected from the API Catalog and spans from APM.
The Test Coverage page presents the following information:
- The overall coverage of your API endpoints
- The percentage of tested API endpoints
- The number untested API endpoints with the highest request count, sorted by error rate
- The percentage of tested API endpoints with API tests that have not been tested in CI
- The number of untested API endpoints that have APM monitors
Investigate test coverage for API endpoints
Maintain a comprehensive, accurate testing suite by resolving issues that are causing your Synthetic tests to fail and your API endpoints to experience poor performance.
To identify areas in your testing suite where you should create API tests:
- Click the Untested checkbox in the API overall coverage section.
- Investigate the endpoint side panel to see all the passing or failing tests that have been created for the endpoint. The Dependency Map displays upstream issues that may be contributing to your endpoint’s poor performance, and downstream dependencies that are affected.
- Identify gaps in your API test coverage by examining the information presented in the following sections:
- API Overall Coverage
- Displays all of the untested endpoints within your tag scope.
- Performance
- Displays the most engaged, untested endpoints with significant error rates.
- Tested in the CI
- Displays the endpoints that are currently being tested in your CI pipelines.
- APM Monitors
- Displays the endpoints that are untested but have active monitors on them.
For more information about the data displayed, see APM Metrics.
Add tests
To create a test, click + New Test on the top right of the Test Coverage page. You can run tests directly in your CI/CD pipelines to ensure no regressions occur before releasing code in production.