Last active
October 23, 2015 19:07
-
-
Save seancoyne/9b1b24dca08ed9282fc6 to your computer and use it in GitHub Desktop.
example grunt setup for testbox-runner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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