Skip to content

ashwingonsalves/wdio-mocha-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wdio-mocha-sample

WebdriverIO Integration with BrowserStack.

BrowserStack Status

Setup

  • Clone the repo
  • Install dependencies npm install
  • You can setup environment variables for all sample repos (see Notes) or update *.conf.js files inside the conf/ directory with your BrowserStack Username and Access Key

Running your tests

  • To run a local test on your machine using Chrome, run npm run test
  • To run a single test on BrowserStack, run npm run browserstack-single
  • To run parallel tests on BrowserStack, run npm run browserstack-parallel
  • To run a test accessing a local URL on BrowserStack, run npm run browserstack-local
  • To run parallel tests accessing a local URL on BrowserStack, run npm run browserstack-local-parallel
  • To run tests on real mobile devices at BrowserStack, run npm run browserstack-mobile

Work in Progress

  • To run test using wdio image comparison service on BrowserStack, run npm run screen-compare

Notes

  • You can view your test results on the BrowserStack automate dashboard

  • To test on a different set of browsers, check out our platform configurator

  • You can export the environment variables for the Username and Access Key of your BrowserStack account

    export BROWSERSTACK_USERNAME=<browserstack-username> &&
    export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>

Additional Resources

About

WebdriverIO Samples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors