- Notifications
You must be signed in to change notification settings - Fork0
Setup and run automated tests using Google Sheet and Cypress.io
License
joacim-boive/lensway-tests
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
UsingCypress to test the lensway websites by configuring aGoogle Sheet
Firstly, we need to install our dependencies to be able to run the project.In a terminal, from the project root:
yarn
Make a copy of thisGoogle Sheet.It must retain the format and tab names to work as we rely on these.
Get your ownGoogle Sheet API key here.Updatesheet-config.js with your key and spreadsheet id.
Just run yarn in a terminal (or "npm run test run" if you're old school ;)To just run the tests:
yarn test run
If you need to interact with the tests:
yarn test open
Read the rest of the details on how Cypress works over @Cypress
The tests are intended to run on the CI server (Jenkins at the time of this writing).Don't install Cypress globally, it's intended to be tied to a project so we can be sure that the test works with the running version.
Details for the implementation of Google Sheet is contained in the sheet-config.js file.
- Cypress
- Cheerio for HTML parsing
- Prettier for formatting source code
- ESLint for linting
- AirBnb linting rules
- Yarn for package management
- Google Sheet for config
- Replace my private Google Sheet API key with a Lensway official one
- Joacim Boive -Initial work -joacim-boive
This project is licensed under the MIT License - see theLICENSE.md file for details
About
Setup and run automated tests using Google Sheet and Cypress.io