Sample Cypress automation tests to ensure UI and API quality. Tests will be run against an example React + GraphQL App
npm run demo
- run this command while specifying the environment for your
configFilee.g.:
npx cypress open --env configFile=localhost
- run this command while specifying the environment for your
configFilee.g.:
npx cypress run --env configFile=localhost
- optional flags:
- record test results to Cypress Dashboard:
--record --key <SECRET_KEY>
Note: the Secret Key can be found in your Cypress Dashboard Settings - run only a specific spec file:
--spec "cypress/integration/my_spec.js" - run only a specific test in a spec file by adding
it.only()inside your code; WARNING: do not check in code withit.only-- this is used for debugging a specific test only.
- record test results to Cypress Dashboard:
npm install cypress@<4.0.1> --save-dev //update to a specific version
npx cypress@<4.0.1> open // run a specific version
You can also see the results of the CI runs in the Cypress Dashboard