GithubHelp home page GithubHelp logo

cypress-ci-template's Introduction

cypress-ci-template

Template for cypress with AWS CodeBuild and S3 integration

Prerequisites

  1. Node.js v12+

About setting base url to environment variables:

  1. For development: by default base url (CYPRESS_BASE_URL) takes from cypres.json file. (yarn cy:dev or yarn cy:dev:debug)
  2. For CI: runCi.sh script is used, that override CYPRESS_BASE_URL from cypres.json file. (yarn cy:ci)
  3. If you need to override base url you can use Cypress.config("baseUrl", cyEnv.baseUrl).

Docs: https://docs.cypress.io/guides/guides/environment-variables.html#Option-2-cypress-env-json

!!! Important: don't add to name of test cases "", coz it break adding images to html report

About running test on CI in several browsers:

  1. Change --browser chrome in runCi.sh file to another flag value, that available here: https://docs.cypress.io/guides/guides/launching-browsers.html#Firefox-Browsers-beta
  2. As the result you will have report folder in the root of project, with: 1) html report 2) video records 3) screenshots

About linter:

  1. Added and configured eslint / .eslintrc.json with cypress-related plugins
  2. Added husky to run auto-fix on pre-commit hooks

cypress-ci-template's People

Contributors

maxvynohradov avatar

Watchers

 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.