https://github.com/percona-lab/codeceptjs-saucehelper
CodeceptJS Sauce Labs helpers, to update Test Names, Test Results after test execution
https://github.com/percona-lab/codeceptjs-saucehelper
Last synced: 9 months ago
JSON representation
CodeceptJS Sauce Labs helpers, to update Test Names, Test Results after test execution
- Host: GitHub
- URL: https://github.com/percona-lab/codeceptjs-saucehelper
- Owner: Percona-Lab
- License: mit
- Created: 2019-02-07T09:12:42.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-27T07:38:35.000Z (over 6 years ago)
- Last Synced: 2025-05-05T22:16:09.967Z (11 months ago)
- Language: JavaScript
- Size: 68.4 KB
- Stars: 2
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# codeceptjs-saucehelper
CodeceptJS Sauce Labs helpers, to update Test Names, Test Results after execution
codeceptjs-saucehelper is [CodeceptJS](https://codecept.io/) helper which is to complete tests results on Sauce Labs after execution. The helper allows to update test name and
test results on sauce labs using the `_passed` and `_failed` hooks accessible in the helper.
NPM package: https://www.npmjs.com/package/codeceptjs-saucehelper
### Configuration
This helper should be added in codecept.json/codecept.conf.js
Example:
```json
{
"helpers": {
"SauceHelper": {
"require": "codeceptjs-saucehelper"
},
}
}
```
Your Sauce Labs user and key are now accessed from the WebDriver/Appium configuration to minimise duplication.
### SauceLabs Automated Build Dashboard
To create SauceLabs Automated Build dashboard, you'd need to pass the unique `build` id. You can pass the unique `build` through process environment variable,
```bash
$ SAUCE_BUILD=
```
e.g. SAUCE_BUILD=`'date'`
###Â Development
Code quality and functionality are checked with ESlint (`npm run lint`) and Jest (`npm run test`). The tests use [`nock`][1] to check that appropriate requests are made to the Sauce Labs API given the configuration and the outcome of the test.
[1]: https://www.npmjs.com/package/nock