grunt-parallel-spec-runner
Advanced tools
Comparing version 0.3.12 to 0.3.13
{ | ||
"name": "grunt-parallel-spec-runner", | ||
"version": "0.3.12", | ||
"version": "0.3.13", | ||
"description": "Plugin used to configure and launch multiple spec ", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/RallySoftware/grunt-parallel-spec-runner.git", |
@@ -350,5 +350,7 @@ /* | ||
keepalive: grunt.option('keepalive') || false, | ||
symbolSummaryTimeout: grunt.option('symbolSummaryTimeout') || 40000, | ||
maxSpecRunners: grunt.option('maxSpecRunners') > 0 ? +grunt.option('maxSpecRunners') : 8, | ||
isolateAllSpecs: grunt.option('isolateAllSpecs') || false | ||
symbolSummaryTimeout: +grunt.option('symbolSummaryTimeout') || 40000, | ||
maxSpecRunners: +grunt.option('maxSpecRunners') > 0 ? +grunt.option('maxSpecRunners') : 8, | ||
isolateAllSpecs: grunt.option('isolateAllSpecs') || false, | ||
burnin: grunt.option('burnin') || false, | ||
permutations: +grunt.option('permutations') > 0 ? +grunt.option('permutations') : 100 | ||
}); | ||
@@ -364,2 +366,17 @@ | ||
//FlakyFinder | ||
if(options.burnin) { | ||
options.specs = []; | ||
options.excludedSpecs = []; | ||
options.isolatedSpecs = []; | ||
options.maxSpecFilesPerRunner = 1; | ||
for(var i = 0; i < options.permutations; i++) { | ||
options.specs.push(grunt.file.expand({filter: 'isFile'}, options.burnin)); | ||
} | ||
if(options.specs.length == 0){ | ||
grunt.log.error('--burnin=' + spec + ' could not be found, use a relative path e.g. --burin=rui/test/javascripts/rui/ui/list/ListViewSpec.js'); | ||
return; | ||
} | ||
} | ||
if(options.excludedSpecs.length > 0){ | ||
@@ -388,5 +405,7 @@ options.specs = options.specs.filter(function(path){ | ||
//Use the user defined number of spec files per runner, or split the spec files among the available runners | ||
options.maxSpecFilesPerRunner = +grunt.option('maxSpecFilesPerRunner') > 0 ? +grunt.option('maxSpecFilesPerRunner') | ||
: Math.ceil(options.specs.length / options.maxSpecRunners); | ||
options.maxSpecFilesPerRunner = options.maxSpecFilesPerRunner || (+grunt.option('maxSpecFilesPerRunner') > 0 ? +grunt.option('maxSpecFilesPerRunner') | ||
: Math.ceil(options.specs.length / options.maxSpecRunners)); | ||
@@ -393,0 +412,0 @@ var done = this.async(), me = this; |
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
216191
478