Skip to content

Instantly share code, notes, and snippets.

@robert-waggott
Created October 7, 2015 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robert-waggott/ec14456d5e04b526b9e9 to your computer and use it in GitHub Desktop.
Save robert-waggott/ec14456d5e04b526b9e9 to your computer and use it in GitHub Desktop.
Running Machine.Spec tests from grunt
module.exports = function(grunt) {
grunt.initConfig({
shell: {
runUnitTests: {
command: "mono packages/Machine.Specifications.Runner.Console.0.9.2/tools/mspec.exe {Your Unit tests dll}"
}
},
watch: {
dlls: {
files: ['**/*.dll'],
tasks: ['shell:runUnitTests'],
options: {
spawn: false
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-shell');
grunt.registerTask('default', ['watch:dlls']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment