-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
58 lines (58 loc) · 5.58 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"name": "grunt-contrib-nodeunit",
"description": "Run Nodeunit unit tests.",
"version": "0.4.1",
"homepage": "https://github.com/gruntjs/grunt-contrib-nodeunit",
"author": {
"name": "Grunt Team",
"url": "http://gruntjs.com/"
},
"repository": {
"type": "git",
"url": "git://github.com/gruntjs/grunt-contrib-nodeunit.git"
},
"bugs": {
"url": "https://github.com/gruntjs/grunt-contrib-nodeunit/issues"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/gruntjs/grunt-contrib-nodeunit/blob/master/LICENSE-MIT"
}
],
"engines": {
"node": ">= 0.8.0"
},
"scripts": {
"test": "grunt test"
},
"dependencies": {
"hooker": "~0.2.3",
"nodeunit": "~0.9.0"
},
"devDependencies": {
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-internal": "~0.4.6",
"grunt-contrib-clean": "~0.5.0",
"grunt": "~0.4.0",
"tap": "~0.4.6"
},
"peerDependencies": {
"grunt": "~0.4.0"
},
"keywords": [
"gruntplugin"
],
"files": [
"tasks",
"LICENSE-MIT"
],
"readme": "# grunt-contrib-nodeunit v0.4.1 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-nodeunit.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-nodeunit) <a href=\"https://ci.appveyor.com/project/gruntjs/grunt-contrib-nodeunit\"><img src=\"https://ci.appveyor.com/api/projects/status/8526qwiyaavbfbxh/branch/master\" alt=\"Build Status: Windows\" height=\"18\" /></a>\n\n> Run Nodeunit unit tests.\n\n\n\n## Getting Started\nThis plugin requires Grunt `~0.4.0`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-contrib-nodeunit --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-contrib-nodeunit');\n```\n\n\n\n\n## Nodeunit task\n_Run this task with the `grunt nodeunit` command._\n\nTask targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide.\n\nThis plugin provides server-side JavaScript unit testing via [nodeunit](https://github.com/caolan/nodeunit/). If you're looking to test JavaScript that uses `window` or the DOM, please use the [grunt-contrib-qunit plugin](https://github.com/gruntjs/grunt-contrib-qunit)`qunit` task.\n\n### Settings\n\n#### options.reporter\n* Type: `String` \n* Default: `'grunt'` \n\nSpecifies the reporter you want to use. For example, `default`, `verbose` or `tap`.\n\n#### options.reporterOutput\n* Type: `Boolean` \n* Default: `false` \n\nSpecifies the file the `reporter`'s output should be saved to. For example, `tests.tap`.\n\n#### options.reporterOptions\n* Type: `Object`\n* Default: `{}`\n\nSpecifies the options passed to the `reporter`. For example, the `junit` reporter requires the `output` option\nto be set:\n\n```js\ngrunt.initConfig({\n nodeunit: {\n all: ['test/*_test.js'],\n options: {\n reporter: 'junit',\n reporterOptions: {\n output: 'outputdir'\n }\n }\n }\n});\n```\n\n### Usage examples\n\n#### Wildcards\n\nIn this example, `grunt nodeunit:all` or `grunt nodeunit` will test all files ending with `_test.js` in the `test` directory.\n\n```js\ngrunt.initConfig({\n nodeunit: {\n all: ['test/*_test.js']\n }\n});\n```\n\nWith a slight modification, `grunt nodeunit:all` will test files matching the same pattern in the `test` directory _and all subdirectories_.\n\n```js\ngrunt.initConfig({\n nodeunit: {\n all: ['test/**/*_test.js']\n }\n});\n```\n\n#### Using Other Reporters\n\nTo use a reporter other than the default one, you can specify the `reporter` and `reporterOutput` parameters.\n\n```js\ngrunt.initConfig({\n nodeunit: {\n all: ['test/*_test.js'],\n options: {\n reporter: 'tap',\n reporterOutput: 'tests.tap',\n reporterOptions: {\n output: 'outputdir'\n }\n }\n }\n});\n```\n\n\n## Release History\n\n * 2014-06-21 v0.4.1 Fixes Windows JUnit issue. Check error.stack exists.\n * 2014-05-14 v0.4.0 Bump nodeunit to v0.9.0\n * 2014-01-26 v0.3.0 Adds 'reporter' and 'reporterOutput' options.\n * 2013-10-19 v0.2.2 Allow missing operators on error object.\n * 2013-09-24 v0.2.1 Fix error display.\n * 2013-05-23 v0.2.0 Bump nodeunit to v0.8.0\n * 2013-02-15 v0.1.2 First official release for Grunt 0.4.0.\n * 2013-01-18 v0.1.2rc6 Updating grunt/gruntplugin dependencies to rc6. Changing in-development grunt/gruntplugin dependency versions from tilde version ranges to specific versions.\n * 2013-01-09 v0.1.2rc5 Updating to work with grunt v0.4.0rc5. Switching to this.filesSrc api.\n * 2012-11-13 v0.1.1 Switch to this.file api internally.\n * 2012-11-04 v0.1.0 Work in progress, not yet officially released.\n\n---\n\nTask submitted by [\"Cowboy\" Ben Alman](http://benalman.com)\n\n*This file was generated on Sat Jun 21 2014 17:24:52.*\n",
"readmeFilename": "README.md",
"_id": "grunt-contrib-nodeunit@0.4.1",
"dist": {
"shasum": "e29a44acd63bfed14e247209b8574c95cb219640"
},
"_from": "grunt-contrib-nodeunit@~0.4.1",
"_resolved": "https://registry.npmjs.org/grunt-contrib-nodeunit/-/grunt-contrib-nodeunit-0.4.1.tgz"
}