codeceptjs-bshelper
TypeScript icon, indicating that this package has built-in type declarations

3.1.2 • Public • Published

"Buy Me A Coffee" Codacy Badge GitHub tag

codeceptjs-bshelper

CodeceptJS Browserstack plugin, to update Test Names, Test Results after test execution

codeceptjs-bshelper is CodeceptJS plugin which is to complete tests results on Browserstack after execution. The plugin updates test name and test results on Browserstack using the event.test.passed and event.test.failed events.

NPM package: https://www.npmjs.com/package/codeceptjs-bshelper

Installation

npm i codeceptjs-bshelper --save-dev

Configuration

This plugin should be added in codecept.conf.js/codecept.conf.ts

Example:

{
...
   plugins: {
     BrowserstackHelper: {
      require: 'codeceptjs-bshelper',
      user: process.env.BROWSERSTACK_USERNAME,
      key: process.env.BROWSERSTACK_ACCESS_KEY,
      shortUrl: true,
      enabled: true
    }
   }
...
}

To use this plugin, users must provide the Browserstack User, Key & Host as part of the configuration.

Note

At the end, there will be an exposed URL to Browserstack. You can have the option to shorten the URL by passing this to the config

shortUrl: true

By default, it is setting to false due to privacy concerns, because we use a third party lib to shorten the url. Using it as your own risks. :)

Dependencies (4)

Dev Dependencies (18)

Package Sidebar

Install

npm i codeceptjs-bshelper

Weekly Downloads

2,457

Version

3.1.2

License

MIT

Unpacked Size

11.5 kB

Total Files

11

Last publish

Collaborators

  • thanh.nguyen