Why Wasn’t This Tested?!
About this presentation
Why wasn’t this tested? - the dreaded question that testers get asked once in a while. There are many reasons for a testing oversight. One way to reduce that oversight is using code coverage. While this is mostly being used with unit tests, with Cypress, you can generate code coverage from your end-to-end tests. To do that, you need to instrument your app. What that means and how to do that is the topic of this talk. We’ll go through setup, cover our app with tests, and interpret coverage reports. Code coverage has a great ability to give you an insight into the blind spots of your tests. However, we’ll talk about code coverage shortcomings too, and how to not get fooled by 100% code coverage.
How instrument a web application for collecting code coverage data
How to setup Cypress for generating code coverage report
How to use Cypress tests to cover the code of web application
What to be aware of when reading code coverage report
Who will benefit?
SDET and test automation engineers
Basics of web development