Cypressing React is a project that demonstrates the possibilities offered by the cypress library for testing applications.
- E2E tests for the login page.
- E2E tests for 404 page.
- E2E tests for posts page.
- Component tests for
<Counter />
component. - Unit tests for
add
function.
The code in the project has 100% test coverage.
The following commands are available to run tests:
test:clean
- Remove code coverage artifacts from previous cypress runs.test:cypress:e2e:ci
- Run E2E tests and generate code coverage report for them.test:cypress:component:ci
- Run component tests and generate code coverage report for them.test:cypress:ci
- Remove code coverage artifacts from previous cypress runs, run E2E and component tests and generate code coverage report for them.test:report
- Open code coverage report in browser.