Grunt task for running multiple xunit dlls with all the options that xunit console provides
npm install grunt-xunit-runner~0.4.2
shell
npm install grunt-xunit-runner --save-dev
`
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
`js
grunt.loadNpmTasks('grunt-xunit-runner');
`
The "xunit_runner" task
$3
In your project's Gruntfile, add a section named xunit_runner to the data object passed into grunt.initConfig().
`js
grunt.initConfig({
xunit_runner: {
options: {
// this is the exe that I use. but there seem to be a couple of runners in the xunit bin
// your options here are to either have xunit in your path or provide a
// workingDir for xunit.
// WARNING
// IF you provide the workingDir you MUST make your path/to/my/test_dll.Test1.dll RELATIVE to the working dir!
xUnit : "xunit.console.clr4.exe"
},
// two forms use either or
files:{
dlls: [
'path/to/my/test_dll.Tests1.dll ',
'path/to/my/test_dll.Tests1.dll ',
'path/to/my/test_dll.Tests1.dll ',
'path/to/my/test_dll.Tests1.dll '
]
}
TestAndConfig:[
{
file:'path/to/my/test_dll.Tests1.dll ',
config:'path/to/my/test_dll.Tests1.dll.config'
}
}
});
``