8000 GitHub - danilofeijo/cypress-lab: E2E testing setup that can be applied in the real world.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

danilofeijo/cypress-lab

Repository files navigation

E2E tests Badge ServeRest GitHub

cypress-lab

Icon laboratori Icon laboratory

A E2E test automation setup that you can apply in the real world.

Features

Test suite

  • ServeRest, an amazing server that simulates an e-commerce to be tested
  • Cypress, to create and run E2E tests< 8000 /li>
  • Faker, to generate randon data for tests
  • ✅ "Page Action" custom pattern, to organize test structure
  • Environment config, to run tests in multiple environment
  • Test retry , to repeat failed tests and avoid flakiness

Code quality

CI/CD

Setup

  1. Clone and access the cloned repo folder

    $ git clone https://github.com/danilofeijo/cypress-lab.git && cd cypress-lab

  2. Install the project dependencies

    $ npm install

CLI commands

Tests Execution

Run npx cypress open, to open the Cypress Test Runner.

Check more available commands by visiting scripts session on package.json file.

Relevant parameters

  • from Cypress
    • --browser chrome, to set browser (default is Electron)
    • --headless, to headless execution (default for Electron)
    • --headed, to non headless execution (default for Chrome/Firefox)
    • --env configFile=<env>, to set an environment (default is 'qa')
    • --spec '<file-path>/test-file.cy.js', to run specific test file

Check other nice parameters by visiting the Command Line Cypress page.

References

About

E2E testing setup that can be applied in the real world.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
0