Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-parallel-spec-runner

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-parallel-spec-runner - npm Package Compare versions

Comparing version 0.3.12 to 0.3.13

2

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc