Coder Social home page Coder Social logo

qake-react-with-cypress's Introduction

React with Cypress ๐ŸŒฒ

This project is a Component Testing example using JavaScript, React and Cypress.

Features ๐Ÿงช

  • NodeJS
  • Cypress
  • ReactJs

Requirements ๐Ÿ“š

Getting Started

Install the dependencies:

npm install

Run application:

npm run start

Run tests in headless mode:

npm run test:headless

Run tests with Cypress GUI:

npm run test

Coverage Tests ๐Ÿ“ˆ

After running the component tests using cypress, you are able to run the tests coverage: (you need to configure the index.html path in your package.json file)

For Windows:

npm run code:coverage

For MacOS

npm run code:coverage:mac

Build a container ๐Ÿณ

docker-compose build

Run this container ๐Ÿ‹

docker-compose up -d && docker ps && docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' app && docker logs app

Run "Cypress Run" in container ๐ŸŒฒ

echo 'Cypress gonna run!!' && docker ps && docker exec app ls && docker exec app npm run test:headless

Run Eslint in container

echo 'Eslint gonna run!!' && docker exec app npx eslint src/*.js -f json -o ./report/eslint-report.json

Stop docker! ๐Ÿšซ๐Ÿณ

docker-compose stop

Contributing ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿค

Feel free to complement/report something in pull requests. The project is ours! ๐Ÿค

qake-react-with-cypress's People

Contributors

douglasqueiroznkey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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