Skip to content

Heimonen/mocha-selenium-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mocha-selenium-runner

A proof of concept. Runs Selenium tests written in Mocha and supports running the tests with multiple browsers.

Installation

npm install mocha-selenium-runner --save

Install selenium webdrivers for your desired browsers, for instance with brew:

$ brew install selenium-server-standalone
$ brew install chromedriver

Running the tests

Create a folder, for instance "tests" in root of your project. Put your test files there. Initialize mocha-selenium-runner in for instance index.js:

let mochaRunner = require('mocha-selenium-runner');
mochaRunner.setTestDirectory('./tests');
mochaRunner.addWebdriver('chrome');
mochaRunner.addWebdriver('firefox');
mochaRunner.start();

And run the tests with:

node index.js

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published