Code Monkey home page Code Monkey logo

cypress-report's Introduction

Cypress Tech Test

Cypress Report with GitHub Actions workflow and publish report in GitHub Pages

Fork this repo

If you want to experiment with running this project in Continous Integration, you'll need to fork it first.

After forking this project in Github, run these commands:

Clone this repo to a local directory

git clone https://github.com/yash1731/Cypress-Report.git

Install the node_modules

npm install

Launch the cypress test runner

npx cypress open

Launch the cypress test chrome/headless mode

npx cypress run --browser chrome

npx cyprees run --headless

Launch the cypress test & publish report in dashboard cypress.io

npx cypress run --record --key 7ce28a2d-137d-4bbf-a020-c5ebf96a797a

I am adding your email to see test report please accept invitation, project name is - cypress-project https://dashboard.cypress.io/invitation/668a4fc2-b4c9-4f16-8250-a13420caf9c3

Follow this link to see report -

https://dashboard.cypress.io/organizations/faa2b607-3728-45f2-bf0a-2e6e3171e26d/projects

Run Cypress tests with GitHub Actions as part of CI/CD pipeline

GitHub offers developers Actions that provide a way to automate, customize, and execute your software development workflows within your GitHub repository.

How this action works:

  1. On push to this repository, this job will provision and start GitHub-hosted Ubuntu Linux instance for running the outlined steps for the declared cypress-run job within the jobs section of the configuration.
  2. The GitHub checkout Action is used to checkout our code from our GitHub repository
  3. Finally, our Cypress GitHub Action will:

Install npm dependencies Build the project (npm run build) Start the project web server (npm start) Run the Cypress tests within our GitHub repository within Electron.

Testing in Chrome and Firefox with Cypress Docker Images

GitHub Actions provides the option to specify a container image for the job. Cypress offers various Docker Images for running Cypress locally and in CI.

Using the Cypress Dashboard with GitHub Actions

GitHub Actions configuration with Cypress Dashboard we can leverage three useful features -

  1. Recording test results with the record: true option to the Cypress Dashboard
  2. In-depth and shareable test reports.
  3. Visibility into test failures via quick access to error messages, stack traces, screenshots, videos, and contextual details.

Links to see GitHub Actions pages build deployment test report

https://yash1731.github.io/Cypress-Report/

cypress-report's People

Contributors

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