Skip to content

Project to explore Cypress.io in e2e tests and some plugins such as cypress-selectors, faker, etc. All tests were built to run against a simple web application in the teste-software repository.

License

Notifications You must be signed in to change notification settings

leonidesfernando/cypress-test-software

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cypress-Test-Software

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.

Requeriments

Structure

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.

After clone the repository, add/update the project and libraries, just once

  • NPM: npm install
  • YARN: yarn install

Build/Compile and Run

You can run some commands or make use of some scripts to build and run, they are in the project.

Commands:

Build/Compile

YARN: yarn build

NPM: npm build

Run

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.js
  • If you want to run in parallel mode:

    • npm run test:parallel
  • If you desire to run all specs without Cucumber:

    • npm run test
  • if you want to run with Cucumber:

    • npm run test:cucumber
  • if you want to run the smoke tests(all tests with {tags: '@smoke'}):

    • npm run test:smoke

Report:

However, you generate html report of executions.

For the common spec, you just need to use this script:

  • npm run test:report

And for the cubumber features, you can use this one:

  • npm run test:cucumber:report

About

Project to explore Cypress.io in e2e tests and some plugins such as cypress-selectors, faker, etc. All tests were built to run against a simple web application in the teste-software repository.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published