grunt-all-tests
Combine your test runners into one.
Getting Started
This plugin requires Grunt.
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-all-tests --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt;
The all_tests task
The task joins seperate test runner html files into a single file.
Run this task with the grunt all_tests
command.
Overview
In your project's Gruntfile, add a section named all_tests
to the data object passed into grunt.initConfig()
.
grunt
Options
options.template
Type: String
Default value: 'src/test/template.html'
The path to the template file that is used to create your destination file.
options.separator
Type: String
Default value: ', '
A string value that is used to do something with whatever.
options.stripComments
Type: Boolean
Default value: true
Strips the comments used to seperate groups from the destination file.
options.selfClean
Type: Boolean
Default value: true
Deletes the destination file after recompiling the destination template, but before writing the file. Although this option is available, it is suggested to to use grunt-contrib-clean.
Usage Example
Default Options
In this example, all the test files in the test/fixtures directory that are prefixed with the word 'fixture' will be joined together and outputed to dist/all.html by way of the template located at the default path.
grunt;
Custom Options
grunt;
Release History
- 2014-03-03 v0.1.0 Initial release.