1.2.1 • Published 3 years ago
cypress-test-results v1.2.1
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
- Test execution on your local
- Test Run on Github Action Workflow