grunt-parallel-spec-runner
Advanced tools
Comparing version 0.3.4 to 0.3.5
{ | ||
"name": "grunt-parallel-spec-runner", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "Plugin used to configure and launch multiple spec ", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/RallySoftware/grunt-parallel-spec-runner.git", |
@@ -24,6 +24,2 @@ /* | ||
if(options.isolateAllSpecs){ | ||
options.maxSpecFilesPerRunner = 1; | ||
}; | ||
var handleError = function(error, result, code, specRuner){ | ||
@@ -36,2 +32,3 @@ if(code !== 0){ | ||
message += grunt.util.linefeed + String(error); | ||
message += grunt.util.linefeed + String(result); | ||
grunt.log.error(message); | ||
@@ -53,5 +50,3 @@ } | ||
options.specs.forEach(function(path) { | ||
if(options.isolatedSpecs.indexOf(path) == -1){ | ||
buildSpecRunner(path); | ||
} | ||
buildSpecRunner(path); | ||
}); | ||
@@ -365,2 +360,15 @@ | ||
if(options.isolateAllSpecs){ | ||
options.isolatedSpecs = options.specs.slice(0); | ||
} | ||
if(options.isolatedSpecs.length > 0){ | ||
options.specs = options.specs.filter(function(path){ | ||
if(options.isolatedSpecs.indexOf(path) != -1){ | ||
return false; | ||
} | ||
return true; | ||
}); | ||
} | ||
//Use the user defined number of spec files per runner, or split the spec files among the available runners | ||
@@ -367,0 +375,0 @@ options.maxSpecFilesPerRunner = +grunt.option('maxSpecFilesPerRunner') > 0 ? +grunt.option('maxSpecFilesPerRunner') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
214219
443