{"_id":"grunt-contrib-testem","_rev":"56-c3ebf3317fd7889620f465ca9fdcf1ba","name":"grunt-contrib-testem","time":{"modified":"2022-06-18T14:44:34.358Z","created":"2013-08-19T19:37:16.983Z","0.1.0":"2013-08-19T19:37:23.330Z","0.2.0":"2013-08-19T21:03:31.660Z","0.3.0":"2013-08-21T07:06:37.865Z","0.4.0":"2013-08-22T11:17:59.731Z","0.5.0":"2013-08-31T16:28:18.640Z","0.5.1":"2013-08-31T16:49:14.757Z","0.5.2":"2013-08-31T17:00:33.365Z","0.5.3":"2013-09-03T04:59:27.233Z","0.5.4":"2013-09-16T12:04:33.059Z","0.5.5":"2013-09-17T17:19:16.458Z","0.5.6":"2013-10-04T14:58:55.351Z","0.5.7":"2013-10-17T10:44:31.661Z","0.5.8":"2013-10-17T11:02:38.512Z","0.5.9":"2013-10-20T12:12:23.911Z","0.5.10":"2013-10-28T13:57:54.177Z","0.5.11":"2013-11-06T13:04:29.909Z","0.5.12":"2013-11-18T04:52:29.349Z","0.5.13":"2013-12-08T14:27:09.269Z","0.5.14":"2014-01-03T07:34:57.891Z","0.5.15":"2014-02-03T08:34:11.605Z","0.5.16":"2014-05-03T08:55:12.612Z","0.6.0":"2016-01-29T22:27:40.511Z","0.5.20":"2016-01-29T22:28:18.978Z","0.5.21":"2016-01-29T22:40:33.756Z","0.5.22":"2016-01-29T22:42:07.315Z"},"maintainers":[{"name":"ofer.sadgat","email":"ofer.sadgat@gmail.com"}],"dist-tags":{"latest":"0.5.22"},"description":"Testem programmatic runner enhanced with Mincer preprocessing","readme":"# grunt-contrib-testem\n\n[![NPM version](https://badge.fury.io/js/grunt-contrib-testem.png)](http://badge.fury.io/js/grunt-contrib-testem)\n[![Build Status](https://travis-ci.org/inossidabile/grunt-contrib-testem.png?branch=master)](https://travis-ci.org/inossidabile/grunt-contrib-testem)\n\nTHIS PROJECT HAS MIGRATED TO grunt-testem-mincer. This package is not being maintained. This exists because the new package is version incompatible with the old one and it has no version history. Therefore this exists to bridge that gap.\n\n> Run tests with Testem in a convenient way:\n>\n>   * Multi-environment runs :heart:\n>   * Out-of-box support for Coffee, Ejs, JST, ... :green_heart:\n>   * Built-in support of Mincer :blue_heart:\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-testem --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-testem');\n```\n\n\n## How to use\n\n### Environments and tasks\n\nWithin your Grunt configuration you have to define one or more environments that Testem will run with:\n\n```javascript\ngrunt.initConfig({\n  testem: {\n    environment1: {\n      // List of files to attach\n      src: [\n        'bower_components/jquery/jquery.js',\n        'source/**/*.coffee',\n        'spec/helpers/*.coffee',\n        'spec/**/*_spec.coffee'\n      ],\n      // Options that will be passed to Testem\n      options: {\n        parallel: 8,\n        launch_in_ci: ['PhantomJS', 'Firefox', 'Safari'],\n        launch_in_dev: ['PhantomJS', 'Firefox', 'Safari']\n      }\n    },\n    environment2: {\n      // ...\n    }\n  }\n```\n\nIn the example given we pass coffee files straight into the `src` and there's no mistake in that. `grunt-contrib-testem` will chew it for you :godmode:.\n\nThere are two modes that you can run tests at:\n  * `grunt testem:ci:<environment>` command-line CI mode\n  * `grunt testem:run:<environment>` Development mode where Testem watches for modifications of files to rerun tests on your behalf\n\n_The default `grunt testem` task runs all settled environments one by one in CI mode._\n\n### Available options\n\nEvery environment can take 3 arguments which are:\n\n  * `src`: the full list of files to run (allows unix glob masks: \"path/**/*.*\"). Files get included into playground in the order they are listed at the array.\n  * `options`: options that get passed to running instance of Testem (they are typically located at Testem config)\n  * `assets`: options that can be used to configure internal instance of Mincer preprocessor\n\n#### Testem options\n\nThe full list of options you can use to affect Testem instance is available [at Testem documentation](https://github.com/airportyh/testem/blob/master/docs/config_file.md#option-reference).\n\nNote also that you can use JS function as hooks:\n\n```javascript\ngrunt.initConfig({\n  testem: {\n    environment1: {\n      src: '*.js'\n      options: {\n        before_tests: function (config, data, callback) {\n          data;         // {}\n          config;       // ... resulting Testem config\n          callback();   // call to finalize hook\n        },\n        on_change: function (config, data, callback) {\n          data;         // {file: '...'}\n          config;       // ... resulting Testem config\n          callback();   // call to finalize hook\n        }\n      }\n    }\n  }\n}\n```\n\n#### Preprocessor options\n\n  * **assets.port**: port that preprocessing server will listen at (defaults to 7358)\n  * **assets.setup**: callback to use to setup instance of mincer. Gets instance of `Mincer.Environment` as a first parameter and `Mincer` itself as a second.\n\n## Advanced usage\n\nInternally `grunt-contrib-testem` is powered by Mincer and it allows you to organize testing of almost any kind of code no matter how exactly it is organized and what preprocessing it requires. This is exactly how it works:\n\n<p align=\"center\">\n  <img src=\"http://f.cl.ly/items/0Q2u2v2c1C1e132R3L33/cloud.png\">\n</p>\n\nDuring initialization, plugin setups local Mincer server with project root as an inclusion path. Then it substitutes local paths with URLs served through it. So instead of passing `spec/spec.coffee` to Testem (that will not work obviously), it passes `http://localhost:7358/spec/spec.coffee` and Mincer takes care of the rest. It also intelligently passes proper `watch_files` option to Testem so no worries – autoreload works just fine.\n\nWhat does it mean in other words? It means you can utilize Mincer during the building of your specs or application files. You can use any directives and any Engines it has to offer you (or even write your own). And all that complexity will work blazing fast thanks to built-in Mincer caching! :scream:\n\nSo go ahead, take a look at these samples...\n\n  * [Basic config](https://github.com/inossidabile/grunt-contrib-testem/tree/master/spec/basic)\n  * [Handling Mincer includes](https://github.com/inossidabile/grunt-contrib-testem/tree/master/spec/minced)\n  * [Custom builder in da area](https://github.com/inossidabile/grunt-contrib-testem/tree/master/spec/custom)\n\n... and hurry up to start using it!\n\n## Kudos\n\nHuge thanks goes to [Toby Ho](https://github.com/airportyh/), the original author of Testem that was one by one accepting my pull-requests and modifications that made such integration possible.\n\n## Maintainers\n\n* Boris Staal, [@inossidabile](http://staal.io)\n\n## License\n\nCopyright 2013 [Boris Staal](http://staal.io)\n\nIt is free software, and may be redistributed under the terms of MIT license.\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/inossidabile/grunt-contrib-testem/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n","versions":{"0.6.0":{"name":"grunt-contrib-testem","description":"Testem programmatic runner enhanced with Mincer preprocessing","version":"0.6.0","homepage":"https://github.com/inossidabile/grunt-contrib-testem","author":{"name":"Boris Staal","email":"boris@staal.io"},"repository":{"type":"git","url":"git://github.com/inossidabile/grunt-contrib-testem.git"},"bugs":{"url":"https://github.com/inossidabile/grunt-contrib-testem/issues"},"engines":{"node":"*"},"dependencies":{"testem":"~0.6.5","sugar":"~1.3.8","mincer":"~0.5.5","connect":"~2.8.5","coffee-script":">=1.6.3"},"keywords":["gruntplugin","testem","mincer"],"license":"MIT","devDependencies":{"grunt":"~0.4.1","grunt-release":"~0.6.0"},"gitHead":"937b755ede8ad7101ae58d58888e8fbfe978354d","_id":"grunt-contrib-testem@0.6.0","scripts":{},"_shasum":"b22c6ae4abe9f60c1d10d28568a63bbba8d13bc2","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"ofer.sadgat","email":"ofer.sadgat@gmail.com"},"dist":{"shasum":"b22c6ae4abe9f60c1d10d28568a63bbba8d13bc2","tarball":"https://registry.npmjs.org/grunt-contrib-testem/-/grunt-contrib-testem-0.6.0.tgz","integrity":"sha512-mWhwL4oeRbneztcR7RFT9hC+UZHSFmT2tC1N4Xk0mRFT48plP3c4YxTdF1soyAF6VBMGl3Abx8IFwJChk6t7ng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0ZfXYClUlfBI+v6t4OtkTLdtjt5BYXAh/shTceftrMQIhALAF83ypdwuj6emFZ/wTKKQ5I/idOMWeR9L/VX5vxZkQ"}]},"maintainers":[{"name":"ofer.sadgat","email":"ofer.sadgat@gmail.com"}]},"0.5.20":{"name":"grunt-contrib-testem","description":"Testem programmatic runner enhanced with Mincer preprocessing","version":"0.5.20","homepage":"https://github.com/inossidabile/grunt-contrib-testem","author":{"name":"Boris Staal","email":"boris@staal.io"},"repository":{"type":"git","url":"git://github.com/inossidabile/grunt-contrib-testem.git"},"bugs":{"url":"https://github.com/inossidabile/grunt-contrib-testem/issues"},"engines":{"node":"*"},"dependencies":{"testem":"~0.6.5","sugar":"~1.3.8","mincer":"~0.5.5","connect":"~2.8.5","coffee-script":">=1.6.3"},"keywords":["gruntplugin","testem","mincer"],"license":"MIT","devDependencies":{"grunt":"~0.4.1","grunt-release":"~0.6.0"},"gitHead":"937b755ede8ad7101ae58d58888e8fbfe978354d","_id":"grunt-contrib-testem@0.5.20","scripts":{},"_shasum":"4648c5d7df857ba5b557417fb2921fb9523fa87d","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"ofer.sadgat","email":"ofer.sadgat@gmail.com"},"dist":{"shasum":"4648c5d7df857ba5b557417fb2921fb9523fa87d","tarball":"https://registry.npmjs.org/grunt-contrib-testem/-/grunt-contrib-testem-0.5.20.tgz","integrity":"sha512-vk86210oZPgiXp+X0fZ5IQ+x9IVC9Mrh7J3JhLbuxyGfWLvlflGgS6mAyBYSwWyKEBvZB5OQX8BInAaihbGipQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFK8wqgGmIidmVlMxU4qljczmwxRHV4/unUqNJj2vYFPAiEAzw/gbFn8/K6+BAPfjM6rwQm8yLb1pQL1fAtjs3FFPX8="}]},"maintainers":[{"name":"ofer.sadgat","email":"ofer.sadgat@gmail.com"}]},"0.5.21":{"name":"grunt-contrib-testem","description":"Testem programmatic runner enhanced with Mincer preprocessing","version":"0.5.21","homepage":"https://github.com/inossidabile/grunt-contrib-testem","author":{"name":"Boris Staal","email":"boris@staal.io"},"repository":{"type":"git","url":"git://github.com/inossidabile/grunt-contrib-testem.git"},"bugs":{"url":"https://github.com/inossidabile/grunt-contrib-testem/issues"},"engines":{"node":"*"},"dependencies":{"testem":"~0.6.5","sugar":"~1.3.8","mincer":"~0.5.5","connect":"~2.8.5","coffee-script":">=1.6.3"},"keywords":["gruntplugin","testem","mincer"],"license":"MIT","devDependencies":{"grunt":"~0.4.1","grunt-release":"~0.6.0"},"gitHead":"eea5b1eb0b915bdcb0af929f9d87829661e56f87","_id":"grunt-contrib-testem@0.5.21","scripts":{},"_shasum":"36b6ad5850d0673b9247e0bace838eaa755156b0","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"ofer.sadgat","email":"ofer.sadgat@gmail.com"},"dist":{"shasum":"36b6ad5850d0673b9247e0bace838eaa755156b0","tarball":"https://registry.npmjs.org/grunt-contrib-testem/-/grunt-contrib-testem-0.5.21.tgz","integrity":"sha512-t3x934boHTZyba0KWTurnMtm/OKi9l5gKVgiYrRyUDy8/N6DhfhamSyCvATk78HiCMqDTn8uaXSOJw4eN6qjsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG1ukRyTKZ5kkdj7XBZ3m5amErHBejiFls4qaGFaz9z9AiAZGKZeU1R0vrv9P1KJP/ILJ/0XeSANhwF9uDhtUFPcIQ=="}]},"maintainers":[{"name":"ofer.sadgat","email":"ofer.sadgat@gmail.com"}]},"0.5.22":{"name":"grunt-contrib-testem","description":"Testem programmatic runner enhanced with Mincer preprocessing","version":"0.5.22","homepage":"https://github.com/inossidabile/grunt-contrib-testem","author":{"name":"Boris Staal","email":"boris@staal.io"},"repository":{"type":"git","url":"git://github.com/inossidabile/grunt-contrib-testem.git"},"bugs":{"url":"https://github.com/inossidabile/grunt-contrib-testem/issues"},"engines":{"node":"*"},"dependencies":{"testem":"~0.6.5","sugar":"~1.3.8","mincer":"~0.5.5","connect":"~2.8.5","coffee-script":">=1.6.3"},"keywords":["gruntplugin","testem","mincer"],"license":"MIT","devDependencies":{"grunt":"~0.4.1","grunt-release":"~0.6.0"},"gitHead":"eea5b1eb0b915bdcb0af929f9d87829661e56f87","_id":"grunt-contrib-testem@0.5.22","scripts":{},"_shasum":"544020fd0a68418d87b0ad5e74191c3527fb27f9","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"ofer.sadgat","email":"ofer.sadgat@gmail.com"},"dist":{"shasum":"544020fd0a68418d87b0ad5e74191c3527fb27f9","tarball":"https://registry.npmjs.org/grunt-contrib-testem/-/grunt-contrib-testem-0.5.22.tgz","integrity":"sha512-UrYirJDfCLj3eWgQk6ZD6f486SszAFARYAJDlRyP7N2n6hf+xvUAI3tMyAN7/ozIQr34B5lQs3Yx5sCM1vdMHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDbY/7BDYWV7bHdTBHpJgezbKdEfH2mDvh9TtNJf3/VYAiEAhZZpkFDzqEDOpmobJdYL7s39hQSYvh89Vn6MIhm7ixA="}]},"maintainers":[{"name":"ofer.sadgat","email":"ofer.sadgat@gmail.com"}]}},"homepage":"https://github.com/inossidabile/grunt-contrib-testem","keywords":["gruntplugin","testem","mincer"],"repository":{"type":"git","url":"git://github.com/inossidabile/grunt-contrib-testem.git"},"author":{"name":"Boris Staal","email":"boris@staal.io"},"bugs":{"url":"https://github.com/inossidabile/grunt-contrib-testem/issues"},"license":"MIT","readmeFilename":"README.md"}