grunt-mstest
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "grunt-mstest", | ||
"description": "The best mstest Grunt plugin ever.", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"homepage": "https://github.com/mrjackdavis/grunt-mstest", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -22,7 +22,4 @@ # grunt-mstest | ||
### Sorry, | ||
I haven't gotten around to writing the documentation for this yet. | ||
###Example | ||
Nevertheless here's an example: | ||
```javascript | ||
@@ -36,3 +33,6 @@ mstest: { | ||
### Forcing tests | ||
You can add force:true to the options to prevent test failures resulting in a build failure, useful for CI workflow. | ||
## Contributing | ||
@@ -42,4 +42,5 @@ In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/). | ||
## Release History | ||
- 0.1.4 Add force feature | ||
- 0.1.3 Change priority of vstools to newest first | ||
- 0.1.2 Fix issue where vstools 10 or 12 was not detected | ||
- 0.1.0 Initial release |
@@ -26,5 +26,13 @@ /* | ||
mstestPath: getExePath(), | ||
details:["errormessage","errorstacktrace"] | ||
details:["errormessage","errorstacktrace"], | ||
force:false | ||
}); | ||
function gruntWarn(str){ | ||
if(options.force) | ||
grunt.log.writeln(str); | ||
else | ||
grunt.fail.warn(str); | ||
} | ||
// Iterate over all specified file groups. | ||
@@ -45,6 +53,6 @@ var containerString = this.filesSrc.map(function(filePath){ | ||
if(!stderr && stderr !== ""){ | ||
grunt.fail.warn("stderr:\""+stderr+"\"",3); | ||
gruntWarn("stderr:\""+stderr+"\"",3); | ||
} | ||
if (error !== null) { | ||
grunt.fail.warn(error,3); | ||
gruntWarn(error,3); | ||
} | ||
@@ -51,0 +59,0 @@ |
52222
188
44