0.1.0 • Published 12 years ago
wd-tap-test v0.1.0
wd-tap-test(1)
Run TAP tests in the browser from your console using WebDriver. It uses a
Selenium server to start and automate the browsers. The test file must output
TAP-compatible output in the browser with console.log.
Install
Use NPM to install:
npm install -g wd-tap-testUsage
Usage: wd-tap-test <command> [browsers]... [options]
command one of: watch, run
browsers Browsers to run the tests in
Options:
--server Selenium server address [localhost]
-s, --source JS file that includes tests [test.js]
-b, --browserify Browserify source before servingExamples
Run the test.js file in Chrome and Firefox:
wd-tap-test run chrome firefoxRun the my-tests.js file in Chrome:
wd-tap-test run -s my-tests.js chromeBrowserify and run the test.js file in Firefox:
wd-tap-test run -bWatch the current directory for changes and run the test.js file in Chrome
whenever a file changes:
wd-tap-test watch chrome