No description, website, or topics provided.
Clone or download
mohitmun Merge pull request #2 from browserstack/develop
git repo fix in package.json
Latest commit ca687a0 Oct 18, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
screenshots readme changes Aug 7, 2018
.gitignore first commit Aug 3, 2018
README.md v0.1.0 Oct 15, 2018
index.js first commit Aug 3, 2018
package-lock.json v0.1.0 Oct 15, 2018
package.json git repo fix in package.json Oct 18, 2018

README.md

wdio-browserstack-reporter

A WebdriverIO plugin which enables BrowserStack reports on CI servers

Browserstack reports on Jenkins

Installation

Add wdio-browserstack-reporter as a dependency in your package.json.

{
  "dependencies": {
    "wdio-browserstack-reporter": "~0.1.0"
  }
}

Configuration

Add browserstack as a reporter in your conf file.

// 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 Jenkins Setup

Related links

Guide to running Selenium Webdriver tests with NodeJS on BrowserStack

Browserstack Jenkins page

Webdriverio.

Webdriverio Jenkins Integration

Webdriverio Junit Reporter