Socket
Socket
Sign inDemoInstall

wd-unit

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wd-unit

Drive in-browser tests with WD.


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

wd-test-runner

Drive in-browser tests with WD.js.

Make sure you are running the latest node version

http://nodejs.org/#download

Install

npm install wd-unit

Authors

  • Mathieu Sabourin (OniOni)

License

Running a test!

Start by importing the required library.

var launcher = require('wd-unit');

Then you can go ahead and launch your test by running the launcher

launcher.run({
    runner: 'qunit',
    page: 'testpage.html',
    root: process.argv[1].slice(0, process.argv[1].lastIndexOf('/')),
});

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: {}

Want more frameworks ?

Check out the wiki about writting plugins.

FAQs

Package last updated on 21 Jun 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc