Project to explore Cypress.io in e2e tests and some plugins such as cypress-selectors, cypress-cucumber-preprocessor faker, etc.
All tests were built to run against a simple web application in the teste-software repository.
As a JS/TS project, it makes use of NodeJS npm and or yarn and some other JS frameworks. That's why we recommend using the IDE of your preference.
You can run some commands or make use of some scripts to build and run, they are in the project.
YARN: yarn build
NPM: npm build
As we have spec to run the normal way, only smoke tests, all in parallel mode or Cucumber's features. For each case, we'll need some paramters to run.
If you desire open the Cypress and choose the project and each spec to run:
cypress --config-file config/cypress.config.jsIf you want to run in parallel mode:
npm run test:parallelIf you desire to run all specs without Cucumber:
npm run testif you want to run with Cucumber:
npm run test:cucumberif you want to run the smoke tests(all tests with
{tags: '@smoke'}):
npm run test:smokeHowever, you generate html report of executions.
For the common spec, you just need to use this script:
npm run test:reportAnd for the cubumber features, you can use this one:
npm run test:cucumber:report