UI Coverage+ Add-on
Ignore views and links
Cypress UI Coverage provides detailed insights into test coverage, but not all views or links in your application are relevant to your test suite. By ignoring certain URLs, you can focus on meaningful coverage and streamline your reports. This guide explains why and how to ignore views and links in your UI Coverage reports.
Why Ignore Views and Links?​
Ignoring views and links can help in the following scenarios:
- Third-Party Pages: Exclude external URLs like OAuth login pages or embedded content that you don't control or need to test.
- Non-Critical Pages: Remove irrelevant views, such as informational pages (e.g., FAQs) or admin-only sections.
- Test Links: Avoid testing URLs only generated for testing purposes or dynamically generated URLs that don't impact application functionality.
- Focus on Key Areas: Streamline coverage reports to prioritize high-impact areas and avoid clutter.
By ignoring unnecessary views or links, you can maintain clear and actionable coverage metrics.