grunt-simple-testem
A grunt wrapper for testem
Getting Started
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-simple-testem --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt;
Alternatively, install task-master and let it manage this for you.
The "testem" task
Overview
In your project's Gruntfile, add a section named testem
to the data object passed into grunt.initConfig()
. This is a thin wrapper around the testem API, so any of the valid options for testem will work here. A simple example is:
grunt;
Testem has two different modes: dev
and ci
(errrrr . . . and also server
. . . which is present here and works but I've never used it so I don't know what it does). If a particular task should have a default mode, you can pass that as "mode," but you can also override it from the command line by passing it as an argument to the task. E.g.
grunt;
Here, running grunt testem:unit
will launch testem in ci mode, but you can override that by running grunt testem:unit:dev
.
If no mode is provided in the configuration or via command line, it defaults to dev
.
Contributing
Please see the contribution guidelines.