Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Initialisation of Grunt plugin

  • Loading branch information...
commit 48b4f4e1ec0b83617088e6eb584112158ffafb89 0 parents
Alexander Praetorius authored
13 .jshintrc
@@ -0,0 +1,13 @@
+{
+ "curly": true,
+ "eqeqeq": true,
+ "immed": true,
+ "latedef": true,
+ "newcap": true,
+ "noarg": true,
+ "sub": true,
+ "undef": true,
+ "boss": true,
+ "eqnull": true,
+ "node": true
+}
76 Gruntfile.js
@@ -0,0 +1,76 @@
+/*
+ * grunt-requirejs-testem
+ * https://github.com/serapath/grunt-requirejs-testem
+ *
+ * Copyright (c) 2013 Alexander Praetorius
+ * Licensed under the MIT license.
+ *
+ * @TODO: http://paazmaya.com/creating-a-grunt-plugin-for-running-common-tasks
+ *
+ */
+
+'use strict';
+
+module.exports = function(grunt) {
+
+ // Project configuration.
+ grunt.initConfig({
+ jshint: {
+ all: [
+ 'Gruntfile.js',
+ 'tasks/*.js',
+ '<%= nodeunit.tests %>',
+ ],
+ options: {
+ jshintrc: '.jshintrc',
+ },
+ },
+
+ // Before generating any new files, remove any previously-created files.
+ clean: {
+ tests: ['tmp'],
+ },
+
+ // Configuration to be run (and then tested).
+ requirejs_testem: {
+ default_options: {
+ options: {
+ },
+ files: {
+ 'tmp/default_options': ['test/fixtures/testing', 'test/fixtures/123'],
+ },
+ },
+ custom_options: {
+ options: {
+ separator: ': ',
+ punctuation: ' !!!',
+ },
+ files: {
+ 'tmp/custom_options': ['test/fixtures/testing', 'test/fixtures/123'],
+ },
+ },
+ },
+
+ // Unit tests.
+ nodeunit: {
+ tests: ['test/*_test.js'],
+ },
+
+ });
+
+ // Actually load this plugin's task(s).
+ grunt.loadTasks('tasks');
+
+ // These plugins provide necessary tasks.
+ grunt.loadNpmTasks('grunt-contrib-jshint');
+ grunt.loadNpmTasks('grunt-contrib-clean');
+ grunt.loadNpmTasks('grunt-contrib-nodeunit');
+
+ // Whenever the "test" task is run, first clean the "tmp" dir, then run this
+ // plugin's task(s), then test the result.
+ grunt.registerTask('test', ['clean', 'requirejs_testem', 'nodeunit']);
+
+ // By default, lint and run all tests.
+ grunt.registerTask('default', ['jshint', 'test']);
+
+};
22 LICENSE-MIT
@@ -0,0 +1,22 @@
+Copyright (c) 2013 Alexander Praetorius
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
89 README.md
@@ -0,0 +1,89 @@
+# grunt-requirejs-testem
+
+> Be able to run "grunt testem:SpecSuiteSet" in order to have regression testing while you develop
+
+## Getting Started
+This plugin requires Grunt `~0.4.1`
+
+If 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:
+
+```shell
+npm install grunt-requirejs-testem --save-dev
+```
+
+Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
+
+```js
+grunt.loadNpmTasks('grunt-requirejs-testem');
+```
+
+## The "requirejs_testem" task
+
+### Overview
+In your project's Gruntfile, add a section named `requirejs_testem` to the data object passed into `grunt.initConfig()`.
+
+```js
+grunt.initConfig({
+ requirejs_testem: {
+ options: {
+ // Task-specific options go here.
+ },
+ your_target: {
+ // Target-specific file lists and/or options go here.
+ },
+ },
+})
+```
+
+### Options
+
+#### options.separator
+Type: `String`
+Default value: `', '`
+
+A string value that is used to do something with whatever.
+
+#### options.punctuation
+Type: `String`
+Default value: `'.'`
+
+A string value that is used to do something else with whatever else.
+
+### Usage Examples
+
+#### Default Options
+In this example, the default options are used to do something with whatever. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result would be `Testing, 1 2 3.`
+
+```js
+grunt.initConfig({
+ requirejs_testem: {
+ options: {},
+ files: {
+ 'dest/default_options': ['src/testing', 'src/123'],
+ },
+ },
+})
+```
+
+#### Custom Options
+In this example, custom options are used to do something else with whatever else. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result in this case would be `Testing: 1 2 3 !!!`
+
+```js
+grunt.initConfig({
+ requirejs_testem: {
+ options: {
+ separator: ': ',
+ punctuation: ' !!!',
+ },
+ files: {
+ 'dest/default_options': ['src/testing', 'src/123'],
+ },
+ },
+})
+```
+
+## Contributing
+In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).
+
+## Release History
+_(Nothing yet)_
42 package.json
@@ -0,0 +1,42 @@
+{
+ "name": "grunt-requirejs-testem",
+ "description": "Be able to use \"testem\" (github.com/airportyh/testem) with \"RequireJS\" (github.com/requirejs) in your project using this plugin for \"grunt\" (github.com/gruntjs/grunt)",
+ "version": "0.1.0",
+ "homepage": "https://github.com/serapath/grunt-requirejs-testem",
+ "author": {
+ "name": "Alexander Praetorius",
+ "email": "dev@serapath.de"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/serapath/grunt-requirejs-testem"
+ },
+ "bugs": {
+ "url": "https://github.com/serapath/grunt-requirejs-testem/issues"
+ },
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "https://github.com/serapath/grunt-requirejs-testem/blob/master/LICENSE-MIT"
+ }
+ ],
+ "main": "Gruntfile.js",
+ "engines": {
+ "node": ">= 0.8.0"
+ },
+ "scripts": {
+ "test": "grunt test"
+ },
+ "devDependencies": {
+ "grunt-contrib-jshint": "~0.6.0",
+ "grunt-contrib-clean": "~0.4.0",
+ "grunt-contrib-nodeunit": "~0.2.0",
+ "grunt": "~0.4.1"
+ },
+ "peerDependencies": {
+ "grunt": "~0.4.1"
+ },
+ "keywords": [
+ "gruntplugin"
+ ]
+}
76 tasks/lib/SuitesRunner.js
@@ -0,0 +1,76 @@
+/*!
+ * Datapine
+ * FIXTURE - Uses SPEC SUITES which contain a Set of SUITES:
+// - 1. UNIT TESTs (test interface of component)
+// - 2. INTEGRATION TESTs (test combination of tested components)
+// - 3. REGRESSION TESTs (run tests every time the project code changes)
+ * Copyright(c) 2013
+ */
+(function(){ // SpecRunner.js
+ 'use strict';
+ require.config({ // CONFIG
+ baseUrl: '/', // Require configuration [requireJS] - SpecRunner.js Config
+ urlArgs: 'cb=' + Math.random(), // Browser Cache Buster - use only where needed, because slows down stuff
+ paths: { // relative to baseUrl
+ // Libraries
+ 'text' : 'vendor/require.text-2.0.3'
+ }
+ });
+ // CONFIGURE ENVIRONMENT
+
+ // Backbone Layout Manager configuration
+ Backbone.LayoutManager.configure({
+ // This allows for Underscore templating
+ // https://github.com/tbranyen/backbone.layoutmanager#asynchronous--synchronous-fetching
+ fetch: function(html) {
+ return _.template(html);
+ },
+ // This allows Views and LayoutViews to be interchangable, avoids much confusion
+ // https://github.com/tbranyen/backbone.layoutmanager#structuring-a-view
+ manage: true
+ });
+
+ // EXECUTE JASMINE TEST ENGINE
+ require(['parameters'], function(parameters){
+ // PARAMETERS - Contains Names of TestSuiteSets to be executed
+ console.log('REGRESSION TESTING with SpecSuites:');
+ var SpecSuiteSet, styles, htmlStyles, requiredTestSuites, name, i, j;
+ SpecSuiteSet = { };
+ for (name in parameters) {
+ if(parameters.hasOwnProperty(name)) {
+ console.log('- ' + name);
+ SpecSuiteSet[name] = { };
+ for(i=0; i<parameters[name].length; i++) {
+ styles = parameters[name][i].styles;
+ htmlStyles = '';
+ for(j=0; j<styles.length; j++){
+ htmlStyles += '<link name="suite" rel="stylesheet" type="text/css" href="' + styles[j] + '">';
+ }
+ SpecSuiteSet[name].htmlStyles = htmlStyles;
+ }
+ for(i=0; i<parameters[name].length; i++) {
+ SpecSuiteSet[name].requiredTestSuites = parameters[name][i].suites;;
+ }
+ }
+ }
+ var namedSpecSuites, env, htmlReporter;
+ for (namedSpecSuites in SpecSuiteSet) {
+ if(SpecSuiteSet.hasOwnProperty(namedSpecSuites)) {
+ $('head').append(SpecSuiteSet[namedSpecSuites].htmlStyles);
+ // LOAD SPEC SUITES
+ require(SpecSuiteSet[namedSpecSuites].requiredTestSuites, function() {
+ // JASMINE SETUP
+ var env = jasmine.getEnv();
+ // env.updateInterval = 1000;
+ var htmlReporter = new jasmine.HtmlReporter();
+ env.addReporter(htmlReporter);
+ // env.specFilter = function(SpecSuites) {
+ // return htmlReporter.specFilter(SpecSuites);
+ // };
+ env.execute(); // EXECUTE SPEC SUITES
+ });
+ $('head > link[name="suite"]').remove();
+ }
+ }
+ });
+})();
89 tasks/lib/SuitesRunner.mustache
@@ -0,0 +1,89 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8">
+ <title>Datapine Tests - [Require.js with Jasmine]</title>
+ <link rel="shortcut icon" type="image/png" href="/vendor/BOWER_INSTALLED/jasmine/images/jasmine_favicon.png">
+ <link rel="stylesheet" type="text/css" href="/vendor/BOWER_INSTALLED/jasmine/src/html/jasmine.css">
+ </head>
+ <body>
+ <h1>Datapine Tests</h1>
+ <h3>Require.js + Jasmine</h3>
+ <b>Real Time Testing for: </b>
+
+ <br>
+ Options:<br>
+ Filename: {{test_page}}<br>
+ Timeout: {{timeout}} ms<br>
+ onStart: {{on_start}}<br>
+ beforeTests: {{before_tests}}<br>
+ afterTests: {{after_tests}}<br>
+ onExit: {{on_exit}}<br>
+ Launch_in_dev: {{#launch_in_dev}} {{.}}, {{/launch_in_dev}}<br>
+ Launch_in_ci: {{#launch_in_ci}} {{.}}, {{/launch_in_ci}}<br>
+ <br>
+ <br>
+
+ <u>SPEC_SUITE_SETS:</u><br>
+ {{#SSS}}
+ - {{name}}<br>
+ {{/SSS}}<br>
+
+
+ <!-- ===============================================================
+ // Sandbox that tests can use for things that require the DOM
+ // => If a SpecSuite requires the use of the DOM, make sure it’s done in here and then cleaned up when you’re done.
+ // Hidden 'Sandbox' Element for appending SUTs to DOM
+ // VIEWs will append themselves to it during Tests
+ // VIEWs will remove themselves from the DOM after Tests
+ =============================================================== -->
+ <div id="sandbox" style="overflow:hidden; height:1px;"></div>
+
+
+ <!-- ===============================================================
+ Jasmine SuitesRunner results go here:
+ =============================================================== -->
+ <script type="text/javascript" src="/vendor/BOWER_INSTALLED/jasmine/lib/jasmine-core/jasmine.js"></script>
+ <script src="/testem.js"></script> <!– Testem creates 'testem helper file' automatically during runtime –>
+ <script type="text/javascript" src="/vendor/BOWER_INSTALLED/jasmine/lib/jasmine-core/jasmine-html.js"></script>
+
+ <script type="text/javascript" src="/vendor/BOWER_INSTALLED/jquery/jquery.js"></script>
+ <script type="text/javascript" src="/vendor/BOWER_INSTALLED/underscore/underscore.js"></script>
+ <script type="text/javascript" src="/vendor/BOWER_INSTALLED/backbone/backbone.js"></script>
+ <script type="text/javascript" src="/vendor/BOWER_INSTALLED/layoutmanager/backbone.layoutmanager.js"></script>
+
+
+ <!-- ===============================================================
+ Use RequireJS to Start SuitesRunner.js
+ =============================================================== -->
+ <script data-main="SuitesRunner" src="/vendor/BOWER_INSTALLED/requirejs/require.js"></script>
+
+
+ <!-- ===============================================================
+ {{SUD}} is specified in "xyz.json testem config files" as an array of strings representing SpecSuite files
+ The "xyz.json" config file for testem is specified as a console option for "grunt testem:xyz"
+ =============================================================== -->
+ <script> define('parameters', function() {
+ var parameters = { };
+ var namedSSS;
+ var namedSS;
+ '{{#SSS}}';
+ namedSSS = [];
+ '{{#specSuiteSet}}';
+ namedSS = { styles: [], suites: [] };
+ '{{#styles}}';
+ namedSS.styles.push('{{.}}');
+ '{{/styles}}';
+ '{{#suites}}';
+ namedSS.suites.push('{{.}}');
+ '{{/suites}}';
+ namedSSS.push(namedSS);
+ '{{/specSuiteSet}}';
+ parameters['{{name}}'] = namedSSS;
+ '{{/SSS}}';
+ return parameters;
+ });
+ </script>
+
+ </body>
+</html>
115 tasks/lib/index.js
@@ -0,0 +1,115 @@
+/*----------------------------------------------------------------------------*\
+ * MODULE TO EXPORT (this lego)
+\*----------------------------------------------------------------------------*/
+(function($api) {
+ 'use strict';
+ var my = function (x) { return require('path').join(process.cwd(), '/'+x); }
+ /*--------------------------------------------------------------------------*\
+ * NPM DEPENDENCIES (others legos)
+ \*--------------------------------------------------------------------------*/
+ , _os = require('os')
+ , _childProcess = require('child_process')
+ , _fs = require('fs')
+ /*--------------------------------------------------------------------------*\
+ * INTERNAL DEPENDENCIES (my legos)
+ \*--------------------------------------------------------------------------*/
+
+ /*--------------------------------------------------------------------------*\
+ * BUILD MODULE (build this lego)
+ \*--------------------------------------------------------------------------*/
+ , init = function (config) { delete $api.init;
+ /*----------------------------------------------------------------------*\
+ * CUSTOMIZE - module interface, internals & initialization
+ \*----------------------------------------------------------------------*/
+ var options = config.options
+ , SpecSuiteSets = config.SpecSuiteSets
+ , TestScope = config.TestScope.length ?
+ config.TestScope :
+ SpecSuiteSets.Default
+ , testemJSON = (function () {
+ console.log(__dirname);
+ console.log(process.cwd());
+ return {
+ 'test_page' : 'SuitesRunner.mustache',
+ 'routes' : {
+ '/SuitesRunner.mustache' : __dirname + '/SuitesRunner.mustache',
+ '/SuitesRunner.js' : __dirname + '/SuitesRunner.js',
+ '/' : options.SUTroot
+ },
+ 'SSS' : (function() {
+ var i,j,k,results = [];
+ for(i=0; i<TestScope.length; i++) {
+ var tmp = { };
+ tmp.name = TestScope[i];
+ tmp.specSuiteSet = [];
+ var tempSSS = SpecSuiteSets[tmp.name];
+ for(j=0; j<tempSSS.length; j++) {
+ var tempSS = tempSSS[j];
+ var SpecSuite = { styles: [], suites: [] };
+ for(k=0; k<tempSS.styles.length; k++) {
+ SpecSuite.styles.push(tempSS.styles[k]);
+ }
+ for(k=0; k<tempSS.suites.length; k++) {
+ SpecSuite.suites.push(tempSS.suites[k]);
+ }
+ tmp.specSuiteSet.push(SpecSuite);
+ }
+ results.push(tmp);
+ }
+ return results;
+ })(),
+ 'launch_in_dev' : options.launchDev,
+ 'launch_in_ci' : options.launchCI,
+ 'timeout' : options.timeout,
+ 'on_start' : options.onStart,
+ 'before_tests' : options.beforeTests,
+ 'after_tests' : options.afterTests,
+ 'on_exit' : options.onExit
+ };
+ })()
+ , os = _os.platform() // require('os').type(); // for more information
+ , testem = 'node node_modules/testem/testem.js -f _TEMP_TESTEM/testem.json'
+ , commands = { // 'terminal' command used with 'options' which will start testem in a new window
+ 'linux' : {terminal:'gnome-terminal', options: ['-e', testem]},
+ 'darwin': {terminal:'open' , options: ['-a', 'Terminal', '.', testem]},
+ 'win32' : {terminal:'start' , options: ['cmd','/c', testem]}
+ }
+ , run = function (command) {
+ if(command) {
+ var child = _childProcess.spawn(command.terminal, command.options);
+ } else {
+ console.log('TESTEM Launcher hasn\'t yet been fully implemented for ' + os + '/' + _os.type());
+ }
+ }
+ , deleteFolderRecursive = function(path) {
+ var files = [];
+ if( _fs.existsSync(path) ) {
+ files = _fs.readdirSync(path);
+ files.forEach(function(file,index){
+ var curPath = path + "/" + file;
+ if(_fs.statSync(curPath).isDirectory()) { // recurse
+ deleteFolderRecursive(curPath);
+ } else { // delete file
+ _fs.unlinkSync(curPath);
+ }
+ });
+ _fs.rmdirSync(path);
+ }
+ }
+ ;
+ deleteFolderRecursive('_TEMP_TESTEM');
+ _fs.mkdirSync('_TEMP_TESTEM');
+ _fs.writeFileSync('_TEMP_TESTEM/testem.json', JSON.stringify(testemJSON, null, 4));
+ run(commands[os]);
+ // deleteFolderRecursive('_TEMP_TESTEM');
+ return ['(Running TEST\'EM on "' + os + '")', 'System under Development [SUD]', TestScope];
+ }
+ ;
+/*--------------------------------------------------------------------------*\
+ * SET MODULE DEFAULT INTERFACE
+\*--------------------------------------------------------------------------*/
+$api.init = init;
+// [Optional] initialize this module immediately
+// init($config); // give config argument if you want to supply settings/options
+})(module.exports = {});
+/*----------------------------------------------------------------------------*/
57 tasks/requirejs_testem.js
@@ -0,0 +1,57 @@
+/*
+ * grunt-requirejs-testem
+ * https://github.com/serapath/grunt-requirejs-testem
+ *
+ * Copyright (c) 2013 Alexander Praetorius
+ * Licensed under the MIT license.
+ */
+
+'use strict';
+
+module.exports = function(grunt) {
+
+ var description = 'Be able to run "grunt testem:NamedSpecSuiteSet" in order to have regression testing while you develop.' +
+ '\n\nThis task starts TEST\'EM in new console window for realtime testing.' +
+ '\nAvailable "NamedSpecSuiteSets" are those, which are configured in the options for "requirejs_testem", ' +
+ 'as defined in the "grunt.initConfig(object)"' +
+ '\n\nEXAMPLE:' +
+ '\n--------' +
+ '\n grunt.initConfig({ ...' +
+ '\n requirejs_testem: { SpecSuiteSets: {' +
+ '\n mySpecSuiteSet1: [{ styles: [ ... ], suites: [...]}, {styles: [...], suites: [...]}, ...],' +
+ '\n mySpecSuiteSet2: [{ styles: [ ... ], suites: [...]}, {styles: [...], suites: [...]}, ...],' +
+ '\n Default: [mySpecSuiteSet1, mySpecSuiteSet2]' +
+ '\n } ...' +
+ '\n\nUSAGE:' +
+ '\n------' +
+ '\n - "grunt requirejs_testem" (same as "grunt requirejs_testem:Default" and will run all listed "NamedSpecSuiteSets")\n' +
+ '\n - "grunt requirejs_testem:mySpecSuiteSet2" (will run the named SpecSuite Set "mySpecSuiteSet2")\n';
+
+ grunt.task.registerTask('requirejs_testem', description,
+ function() {
+ // Merge task-specific and/or target-specific options with these defaults.
+ // => thus, set these options as defaults, if projects Gruntfile.js doesnt provide values for them.
+ // var options = this.options({
+ // testPage : 'fixture123/SuitesRunner.mustache',
+ // SUTroot : '../app2/', // relative to "testPage"
+ // launchDev : [],
+ // launchCI : ['Chrome', 'Firefox'],
+ // timeout : 1000,
+ // onStart : '', // setUp TestEnvironment
+ // beforeTests : '',
+ // afterTests : '',
+ // onExit : '' // cleanUp TestEnvironment
+ // });
+
+ var TestemLaunsher = require('./lib');
+ var msg = TestemLaunsher.init({
+ 'options' : grunt.config(this.name).options,
+ 'SpecSuiteSets' : grunt.config(this.name).SpecSuiteSets,
+ 'TestScope' : Array.prototype.slice.call(arguments, 0)
+ });
+ grunt.log.writeln(msg[0]);
+ // grunt.task.run('bar', 'baz');
+ grunt.log.subhead(msg[1]);
+ grunt.log.ok(JSON.stringify(msg[2]));
+ });
+};
1  test/expected/custom_options
@@ -0,0 +1 @@
+Testing: 1 2 3 !!!
1  test/expected/default_options
@@ -0,0 +1 @@
+Testing, 1 2 3.
1  test/fixtures/123
@@ -0,0 +1 @@
+1 2 3
1  test/fixtures/testing
@@ -0,0 +1 @@
+Testing
48 test/requirejs_testem_test.js
@@ -0,0 +1,48 @@
+'use strict';
+
+var grunt = require('grunt');
+
+/*
+ ======== A Handy Little Nodeunit Reference ========
+ https://github.com/caolan/nodeunit
+
+ Test methods:
+ test.expect(numAssertions)
+ test.done()
+ Test assertions:
+ test.ok(value, [message])
+ test.equal(actual, expected, [message])
+ test.notEqual(actual, expected, [message])
+ test.deepEqual(actual, expected, [message])
+ test.notDeepEqual(actual, expected, [message])
+ test.strictEqual(actual, expected, [message])
+ test.notStrictEqual(actual, expected, [message])
+ test.throws(block, [error], [message])
+ test.doesNotThrow(block, [error], [message])
+ test.ifError(value)
+*/
+
+exports.requirejs_testem = {
+ setUp: function(done) {
+ // setup here if necessary
+ done();
+ },
+ default_options: function(test) {
+ test.expect(1);
+
+ var actual = grunt.file.read('tmp/default_options');
+ var expected = grunt.file.read('test/expected/default_options');
+ test.equal(actual, expected, 'should describe what the default behavior is.');
+
+ test.done();
+ },
+ custom_options: function(test) {
+ test.expect(1);
+
+ var actual = grunt.file.read('tmp/custom_options');
+ var expected = grunt.file.read('test/expected/custom_options');
+ test.equal(actual, expected, 'should describe what the custom option(s) behavior is.');
+
+ test.done();
+ },
+};
Please sign in to comment.
Something went wrong with that request. Please try again.