Sample project created using create-react-app to demonstrate how to extract code coverage report while running end-to-end tests with Cypress.
Run yarn to install the project and dev dependencies.
Run yarn start to start the app in development mode.
Run yarn e2e to run the tests in headless mode.
Note: This command already automatically starts the app, runs the tests, and shuts the app down.
Note 2: Alternatively, you can run
yarn startin one terminal, andyarn cy:openin another, to run the tests in interactive mode.
Run yarn coverage to generate and open the HTML code coverage report.
Made with 💚 by Walmyr Filho.