grunt-sauce-tap
Run TAP tests in the browser using Sauce Labs.
This module wraps sauce-tap-runner in a Grunt task, for easier automation.
Getting Started
This plugin requires Grunt ~0.4.1
.
Install the plugin:
npm install grunt-sauce-tap --save-dev
Once the plugin has been installed, it must be loaded by your Gruntfile like this:
grunt;
sauce_tap task
To get started running tests, add a section named sauce_tap
to your Grunt
config like this:
grunt;
Options
user
Your Sauce Labs username (probably should get this from the environment variables; it should not be embedded in the source files).
key
Your Sauce Labs key (also should not be embedded in the source files, see above).
timeout
The test timeout in seconds. If a browser has not completed the tests in the specified number of seconds, it will be canceled.
port
The port to use for test HTTP server. The Sauce Connect tunnel only proxies certain ports, so be careful which one you use. The default port should work fine in most cases.
browsers
An array of objects that specifies the browsers to run the tests in. Be sure to
provide a name
property in each browser so it can be identified in the task
output. See the Sauce Labs docs
for the options for each browser.