{"name":"grunt-simple-mocha","description":"A simple wrapper for running tests with Mocha.","version":"0.3.2","homepage":"https://github.com/yaymukund/grunt-simple-mocha","author":{"name":"Mukund Lakshman","email":"yaymukund@gmail.com","url":"http://yaymukund.com"},"repository":{"type":"git","url":"git://github.com/yaymukund/grunt-simple-mocha.git"},"bugs":{"url":"https://github.com/yaymukund/grunt-simple-mocha/issues"},"licenses":[{"type":"MIT","url":"https://github.com/yaymukund/grunt-simple-mocha/blob/master/LICENSE-MIT"}],"main":"grunt.js","bin":{"grunt-simple-mocha":"bin/grunt-simple-mocha"},"engines":{"node":"*"},"scripts":{"test":"grunt test"},"dependencies":{"mocha":"*"},"devDependencies":{"grunt":"0.4.x","grunt-contrib-jshint":"0.1.x"},"keywords":["gruntplugin","mocha","test"],"_id":"grunt-simple-mocha@0.3.2","dist":{"shasum":"8efc03034c156c7b5f378e693f0b496b66c551d4","tarball":"http://registry-npm.ywwl.com/grunt-simple-mocha/download/grunt-simple-mocha-0.3.2.tgz","integrity":"sha512-XetBmVWRU/zrSrO7EcUeH2Ke/O0uMMbzXv2mnWkfBfUWQHnjEm1dix8eBUYgcsI5Q9I1++BZS84V61WawswC7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDuQLB1FoR1Rq3sPGvtrxyXurungJK1IyfvTsPHBMdykAiAuqblY4z2lo5NAab0fp7dPlZsTakDtvY6wGPhMBbqbcw=="}],"size":3102,"noattachment":false,"key":"/grunt-simple-mocha/-/grunt-simple-mocha-0.3.2.tgz"},"maintainers":[{"name":"yaymukund","email":"yaymukund@gmail.com"}],"directories":{},"readme":"# grunt-simple-mocha\n\nA simple wrapper for running tests with Mocha. It's pretty much a cleaned up\nand plugin-ized version of [this helpful Gist by johnkpaul][johnkpaul_gist].\n\nIf you're looking to run client-side specs with PhantomJS, you might be\ninterested in [grunt-mocha][othermocha].\n\n### Updating from 0.2.x to 0.3.x\n\nThis task now depends on grunt 0.4.x. Please see the\n[grunt 0.3 to 0.4 migration guide][migration_guide] for more details.\n\n## Installation\n1. Install this grunt plugin next to your project's\n   [Gruntfile.js][getting_started] with:\n   ```javascript\n   npm install grunt-simple-mocha --save-dev\n   ```\n\n2. Then add this line to your project's `grunt.js` gruntfile:\n   ```javascript\n   grunt.loadNpmTasks('grunt-simple-mocha');\n   ```\n\n## Usage\n\nIn your grunt.js:\n\n```javascript\ngrunt.initConfig({\n  simplemocha: {\n    //\n    // These are passed directly to the mocha constructor. See:\n    //   https://github.com/mochajs/mocha/blob/master/lib/mocha.js#L56-L74\n    //\n    options: {\n      ui: 'bdd',\n      reporter: 'tap',\n      globals: ['window','document','$','should'],\n      timeout: 3000,\n      retries: 2,\n      bail: false,\n      slow: 2000,\n      ignoreLeaks: false,\n      fullTrace: true\n      grep: 'users',\n    },\n\n    all: { src: ['test/**/*.js'] }\n  }\n});\n\n// For this to work, you need to have run `npm install grunt-simple-mocha`\ngrunt.loadNpmTasks('grunt-simple-mocha');\n\n// Add a default task. This is optional, of course :)\ngrunt.registerTask('default', 'simplemocha');\n```\n\nNow, you can just run `grunt simplemocha` in your shell to run the tests. That's it!\n\n## Running tests\n\nRun `npm install && npm test`\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding\nstyle. Add unit tests for any new or changed functionality. Lint and test your\ncode using [grunt][grunt_github].\n\n## Migration Guides\n\n### Updating from 0.2.x to 0.3.x\n\nThis task now depends on grunt 0.4.x. Please see the\n[grunt 0.3 to 0.4 migration guide][migration_guide] for more details.\n\n### Updating from 0.1.x to 0.2.x\n\nIf you were using 0.1.x, the task name has changed from `mocha` to\n`simplemocha` to avoid confusion with [grunt-mocha][othermocha]. Please make\nsure your grunt.js file is updated. See [#3][issue3].  \n\n## Release History\n\n* v0.1 - Woo!\n* v0.2 - Changed the task name from `mocha` to `simplemocha`. See [#3][issue3].\n* v0.3 - Updated to support grunt 0.4.x.\n* v0.4 - Updated to support node 0.10.x.\n* v0.4.1 - Updated readme and added tests.\n\n## License\nCopyright (c) 2012 Mukund Lakshman\n\nLicensed under the MIT license.\n\n[getting_started]: https://github.com/cowboy/grunt/blob/master/docs/getting_started.md\n[johnkpaul_gist]: https://gist.github.com/2361303\n[grunt_github]: http://github.com/cowboy/grunt\n[issue3]: https://github.com/yaymukund/grunt-simple-mocha/issues/3\n[othermocha]: https://github.com/kmiyashiro/grunt-mocha\n[migration_guide]: https://github.com/gruntjs/grunt/wiki/Upgrading-from-0.3-to-0.4\n","publish_time":1358134687145,"_cnpm_publish_time":1358134687145,"dist-tags":{"latest":"0.4.1"}}