Skip to content

Instantly share code, notes, and snippets.

@seancoyne
Last active October 23, 2015 19:07
Show Gist options
  • Save seancoyne/9b1b24dca08ed9282fc6 to your computer and use it in GitHub Desktop.
Save seancoyne/9b1b24dca08ed9282fc6 to your computer and use it in GitHub Desktop.
example grunt setup for testbox-runner
/* global module */
(function(module){
"use strict";
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-shell');
grunt.initConfig({
watch: {
cfml: {
files: [ "api/model/**/*.cfc", "api/tests/spec/**/*.cfc" ],
tasks: [ "testbox" ]
}
},
shell: {
testbox: {
command: "./node_modules/testbox-runner/index.js --colors"
},
"testbox-railo": {
command: "./node_modules/testbox-runner/index.js --colors --runner http://localhost/myapp/api/tests/ --directory /myapp/api/tests/spec --recurse true"
}
}
});
grunt.registerTask("testbox", [ "shell:testbox" ]);
grunt.registerTask("testbox:cf11", [ "shell:testbox" ]);
grunt.registerTask("testbox:railo", [ "shell:testbox-railo" ]);
};
})(module);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment