Skip to content

browserstack/mocha-browserstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mocha-browserstack

Mocha Integration with BrowserStack for E2E functional testing of UI using Selenium and browserstack-node-sdk.

BrowserStack Logo

Run sample build


Integrate your test suite


  1. Install browserstack-node-sdk as a dev-dependency
npm i -D browserstack-node-sdk
or
yarn add --dev browserstack-node-sdk
  1. Add a browserstack.yml/yaml file at root of your mocha project with your BrowserStack Username and Access Key.
  2. Add a new command for running tests on browserstack in scripts tag of package.json,
"scripts": {
    "test": "mocha ...args",
    "browserstack-test": "browserstack-node-sdk mocha ...args"
  },

Notes


Additional Resources


About

Selenium examples for Mocha and BrowserStack Automate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published