Giter Site home page Giter Site logo

cypress-lab's Introduction

E2E tests GitHub

Badge ServeRest

cypress-lab

Icon laboratory

A test automation setup model 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
  • Faker, to generate randon data for tests
  • "Page Action" custom pattern, to organize the test structure
  • Environment config, to run tests in multiple environment

Code quality

  • Prettier - to format the code
  • ESLint, to identify wrong patterns in the code
  • Husky, to check and improve commits
  • commitlint, to check and improve commit messages

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.spec.js', to run specific test file

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

References

cypress-lab's People

Contributors

danilofeijo avatar paulogoncalvesbh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.