Skip to content

Instantly share code, notes, and snippets.

@ruyadorno
Created June 10, 2014 14:51
Show Gist options
  • Save ruyadorno/f7570cf984c0e942e1ab to your computer and use it in GitHub Desktop.
Save ruyadorno/f7570cf984c0e942e1ab to your computer and use it in GitHub Desktop.
Running grunt inside a yeoman generator test
var getGrunt = function () {
var grunt = require(path.join(__dirname, 'temp/node_modules/grunt'));
grunt.option('gruntfile', path.join(__dirname, 'temp/Gruntfile.js'));
return grunt;
};
// Running the test task inside a describe/it block:
getGrunt().tasks(['test'], {}, callback_fn);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment