Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

318
Views
How to get cypress code coverage for iframe?

I'm trying to generate cypress code coverage for iframe which is part of my application. Cypress creates an object called __coverage__ for the instrumentation that is present in my iframe window(main content). But at the end of each spec, it shows the below message enter image description here

Without an iframe, it's generating the report.

I followed this link https://github.com/cypress-io/code-coverage#instrument-your-application

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I don't think adding an <iframe> can affect the code coverage, since the counters in __coverage__ are counting lines of javascript code and not HTML.

To check it out, I downloaded the latest repo from code-coverage/tree/v3.10.0 and added an <iframe> to one of the simple examples under /test-apps.

The coverage report was still created even though there was now an iframe on the page.

enter image description here

If you can provide more details, preferably a repo I can check further - but as it stands, it seems it's not reproducible.

BTW Cypress v10 is used in the code-coverage repo (not yet visible/released on the Cypress repo).

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!