Coder Social home page Coder Social logo

cypress-base's Introduction

cypress-base

cypress base project Last update : 07/11/2023

=======

This project uses Typescript and Cypress version 12.7.

Set up

  • npm install to install the dependencies
  • npx cypress open to open the app

Useful commands

  • npm init -y to start a npm package
  • npm install [email protected]to install cypress specific version 10.6.0
  • export KEY_NAME=VALUE set up an env variable in MAC
  • set KEY_NAME=VALUE to set up an env variable in Windows =======

Running in Docker

  • docker run -it -v $PWD:/e2e -w /e2e cypress/included:10.6.0

  • docker run -it -v ${PWD}:/e2e -w /e2e cypress/included:10.6.0

    • it = interactive terminal
    • -v ${PWD}:/e2e = map current folder to /e2e in the container
    • -w /e2e = set working directory to e2e
    • -e CYPRESS_baseUrl=... = pass environment variable CYPRESS_baseUrl
    • cypress/included:9.2.0 = name of the Docker image with tag

Allure:

  • npm install -g allure-commandline --save-dev to install globally.
  • npm install allure-commandline --save-dev to install locally.
  • allure generate to generate the html report.
  • allure serve to generate and serve the html report.
  • allure open to serve the html report.

Useful links

Blogs

Random notes (reminders):

  • Mocha is the testrunner for Cypress.
  • Node.js 12 or 14 and above is required.

By: Gabriel Calvo Vargas

======= ¿Do you want to get in touch? Let's talk here.

cypress-base's People

Contributors

gcalvocr 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.