End-to-end Testing with Cypress.io
Cypress has put together a full day workshop that teaches how to test a modern web application using Cypress. You can preview the slides here: testing-workshop-cypress.netlify.app/
The repository cypress-io/testing-workshop-cypress has:
- An example application
- Test exercises (with answers)
- Speaker slides with notes
The content should be a good starting point for anyone who wants to learn Cypress or teach it to others. The exercises cover the following topics (see the workshop's README file for a full list).
- How to install and run Cypress
- Writing and running a basic test
- Setting up video recording and screenshots
- Using the Selector Playground
- Testing XHR requests
- Using data fixtures to mock data
- Running tests on CI and recording to the Dashboard
- Customizing your own reporters
- Writing custom Cypress commands
- Debugging in Cypress
- Component testing
We hope this testing workshop proves itself useful in teaching developers and testers good Cypress practices.
Cypress on CI
Cypress team has prepared a 4 hour workshop that shows how to successfully run Cypress tests on several popular continuous integration services. You can preview the slides at cypress-workshop-ci.netlify.app. The repository github.com/cypress-io/cypress-workshop-ci has the Markdown slides with all content and teaches you how to test the example application on:
- generic continuous integration service
- GitHub Actions using cypress-io/github-action
- CircleCI using cypress-io/circleci-orb
- Netlify Build using cypress-io/netlify-plugin-cypress
ReactJSDay 2019 Testing Course
This is the reference repository with all the contents and the examples of the React Testing 101: component, integration, and end-to-end testing course for the ReactJSDay 2019 conference.
The repository aims to be consumed through the compiled GitBook. The course starts from the top of the testing pyramid and goes down instead of following the "standard" testing path, you can read here the reason why. Some introductory slides are also included but they're only useful for the teacher. They're a summary of the content presented before the coding session.
Requisites to run the project and the tests on your local machine:
Thanks goes to these wonderful people: Stefano Magni and Jaga Santagostino. Please see the repository for an up to date list of all contributors. Contributions of any kind are welcome in the repository.