A npm qunit project that starts tests after 'main' has loaded.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
test
.editorconfig
.gitignore
.npmrc
.travis.yml
Gruntfile.js
README.md
add-dom.js
bower.json
package.json
steal-qunit.js

README.md

Build Status npm version

steal-qunit

This provides a bower installable QUnit that fires off all tests when the app has finished loading.

Install

From NPM:

npm install steal-qunit --save-dev

From Bower:

bower install steal-qunit --save-dev

Configuration

If you are using the npm or bower plugins no configuration is needed. Otherwise configure the paths and meta properties:

System.config({
	paths: {
		"steal-qunit/*": "path/to/steal-qunit/*.js",
		"steal-qunit": "path/to/steal-qunit/steal-qunit.js",
		"qunitjs/qunit/*": "path/to/qunit/qunit/*.js",
		"qunitjs/qunit/qunit.css": "path/to/qunit/qunit/qunit.css"
	},
	meta: {
		"qunitjs/qunit/qunit": {
			"format": "global",
			"exports": "QUnit",
			"deps": [
				"steal-qunit/add-dom"
			]
		}
	}
});