Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nhantrantrong/cypress-test-results
This is repository to retrieve cypress test results summary after execution in github action
https://github.com/nhantrantrong/cypress-test-results
actions cypress cypress-io github-actions
Last synced: about 1 month ago
JSON representation
This is repository to retrieve cypress test results summary after execution in github action
- Host: GitHub
- URL: https://github.com/nhantrantrong/cypress-test-results
- Owner: nhantrantrong
- Created: 2022-09-22T10:08:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-28T11:13:46.000Z (over 2 years ago)
- Last Synced: 2024-04-24T22:20:37.844Z (10 months ago)
- Topics: actions, cypress, cypress-io, github-actions
- Language: JavaScript
- Homepage:
- Size: 23 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 herecypressTestResults(on, config)
},
```# Sample Usages
Please the sample code of using cypress-test-results plug-in [here](https://github.com/nhantrantrong/sample-cypress-test-results)
- Register the plugin from your **_cypress.config.js_** file

- Test execution on your local

- Test Run on Github Action Workflow

