GithubHelp home page GithubHelp logo

cypress-report-action's Introduction

Features

On each pull request commit push you will get the following comment with a report:

Report

  • Creates comment with short report on cypress gets failures.
  • Removes comment when no failures reported.
  • Replaces comment everytime build is completed.

Usage

Assumes you have added mochawesome reporter to cypress.json which generates JSON reporter file:

  "reporter": "cypress-multi-reporters",
  "reporterOptions": {
    "reporterEnabled": "mochawesome",
    "mochawesomeReporterOptions": {
      "reportDir": "test/cypress/reports/mocha",
      "quiet": true,
      "overwrite": false,
      "html": false,
      "json": true
    }
  }

You can now consume the action by referencing the v1 branch:

- name: Prepare reports
  if: always()
  run: |
    cd frontend
    npm i -g mochawesome-merge
    npm i -g mochawesome-report-generator
    mochawesome-merge test/cypress/reports/mocha/*.json > ./test/cypress/reports/mocha/index.json
    marge --charts=true --showPassed=false -o ./test/cypress/reports/mocha/ ./test/cypress/reports/mocha/index.json
- name: Cypress report
  uses: dmitry/cypress-report-action@v1
  with:
    token: ${{ secrets.GITHUB_TOKEN }}
    pathname: frontend/test/cypress/reports/mocha/index.json
  if: always()

cypress-report-action's People

Contributors

dmitry avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

cypress-report-action's Issues

Action needs to be updated to Node.js 16

When using this action, the following warning is shown:
Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: dmitry/cypress-report-action

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.