grunt-gabarito
Run gabarito test runner within grunt
TL;DR
Install dev dependencies.
npm install gabarito --save-devnpm install grunt-gabarito --save-dev
Configure within Gruntfile.js
grunt; grunt;
Write test.
// test.js var gabarito = ;var assert = gabaritoassert; gabarito ;
Run.
grunt gabarito
Options
src
Type: String|Array
Test files. These files will be passed to the selected gabarito environment(s).
options.environments
Type: Array
default: ["node"]
Your gabarito environments. Gabarito will issue the test files for each of the selected environments. This plugin comes bundled with "node" and "phantom" environments. For aditional configurations to be passed to the environment, the object format may be used.
E.g.:
grunt;
options.reporters
Type: Array
default: ["console"]
Gabarito reporters. Gabarito will tell the reporters what is going on with the tests themselves. This plugin comes bundled with "console" and "junit" reporters. For aditional configurations to be passed to the reporter, the object format may be used.
E.g.:
grunt;
options.config
Type: String
JSON file to be used as configuration.