cypress-test-results

1.2.1 • Public • Published

cypress-test-results

This is repository to retrieve cypress test results summary after execution in github action. The retrieved Test Results Summary would be stored in the corresponding Github Action outputs.

  outputs:
    numOfTestFiles:
      description: "Total number of test files"
    numOfTests:
      description: "Total number of tests"
    numOfPassed:
      description: "Total number of tests with PASSED result"
    numOfFailed:
      description: "Total number of tests with FAILED result"
    numOfPending:
      description: "Total number of tests with PENDING result"
    numOfSkipped:
      description: "Total number of tests with SKIPPED result"
    duration:
      description: "Cypress tests executed duration which is already formatted in hms"
    durationInMilliseconds:
      description: "Cypress tests executed duration in milliseconds"
    dashboardUrl:
      description: "Cypress Dashboard URL if the run was recorded"

Install

Add this plugin as a dev dependency to your Cypress project

# install using NPM
$ npm i -D cypress-test-results
# or using Yarn
$ yarn add -D cypress-test-results

Register the plugin from your cypress.config.js file

setupNodeEvents(on, config) {
  // implement node event listeners here

  cypressTestResults(on, config)
},

Sample Usages

Please the sample code of using cypress-test-results plug-in here

  • Register the plugin from your cypress.config.js file

image

  • Test execution on your local

image

  • Test Run on Github Action Workflow

image

image

Package Sidebar

Install

npm i cypress-test-results

Weekly Downloads

11

Version

1.2.1

License

ISC

Unpacked Size

8.28 kB

Total Files

3

Last publish

Collaborators

  • nhantrantrong