wd-unit
Drive in-browser tests with WD.js.
Make sure you are running the latest node version
Install
npm install wd-unit
Authors
- Mathieu Sabourin (OniOni)
License
- License - Apache 2: http://www.apache.org/licenses/LICENSE-2.0
Running a test!
Start by importing the required library.
var launcher = ;
Then you can go ahead and launch your test by running the launcher
launcher;
Possible options are :
- runner: Unit testing framework. You can currently use Jasmine and Qunit.
- desired: Desired capabilities for the browser running the test.
- Default: {browserName: 'firefox'}
- addr: Base url with wich WD.js will work.
- Default: 'localhost'
- page: Test are run from this page.
- Default: Document root.
- root: Document root for the webserver.
- Default: '.'
- wd_args: Arguments to be passes to WD.js. Check out WD.js docs for more info.
- Default: {}
Take a look at our example code
Want more frameworks ?
Check out the wiki about writting plugins.