https://github.com/browserstack/wdio-browserstack-reporter
https://github.com/browserstack/wdio-browserstack-reporter
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/browserstack/wdio-browserstack-reporter
- Owner: browserstack
- Created: 2018-08-03T09:22:47.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-03T15:05:43.000Z (about 3 years ago)
- Last Synced: 2024-10-19T07:05:18.799Z (over 1 year ago)
- Language: JavaScript
- Size: 817 KB
- Stars: 0
- Watchers: 8
- Forks: 11
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# wdio-browserstack-reporter
The branch contains reporter for **WebdriverIO 5** and later versions. For earlier versions please refer to [wdio-browserstack-reporter/wdio4](https://github.com/browserstack/wdio-browserstack-reporter/tree/wdio4)

## Installation
Add `wdio-browserstack-reporter` as a dependency in your `package.json`.
```json
{
"dependencies": {
"wdio-browserstack-reporter": "1.0.1"
}
}
```
## Configuration
Add `browserstack` as a reporter in your conf file.
```js
// wdio.conf.js
module.exports = {
// ...
reporters: ["browserstack"],
reporterOptions: {
browserstack: {
outputDir: "./"
}
}
// ...
};
```
The following options are supported(optional):
### outputDir
Define a directory where your browserstack report files should get stored.
Type: `String`
## Jenkins Setup
You will have to configure your Jenkins CI server to embed all the BrowserStack Selenium reports and logs in Jenkins.
1. Click on Add post-build action in Post-build Actions.
2. Click on Publish JUnit test result report
3. In the Test report XMLs, enter */*browserstack-reports/REPORT-\*.xml
4. In the Additional test report features section, add Embed BrowserStack Report.
This is how your configuration should look like

## Related links
[Guide to running Selenium Webdriver tests with NodeJS on BrowserStack](https://www.browserstack.com/automate/node)
[Browserstack Jenkins page](https://www.browserstack.com/automate/jenkins)
[Webdriverio](http://webdriver.io).
[Webdriverio Jenkins Integration](http://webdriver.io/guide/testrunner/jenkins.html)
[Webdriverio Junit Reporter](https://github.com/webdriverio-boneyard/wdio-junit-reporter)