Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
grunt-parallel-spec-runner
Advanced tools
Plugin used to configure and launch multiple spec runners in parallel. This task is currently experimental and may produce unexpected results, any questions email rmcqueen@rallydev.com
Install the module with: npm install grunt-parallel-spec-runner
In your project's Gruntfile, add a section named grunt-parallel-spec-runner
to the data object passed
into grunt.initConfig()
.
grunt.initConfig
parallel_spec_runner:
your_target:
options:
specs:
excludedSpecs:
isolatedSpecs:
Type: String|Array
Your Jasmine specs.
Type: String|Array
Specifically excludes any spec files that were included via options.spec.
Type: String|Array
Specifically isolate any spec files that were included via options.spec. This is useful to isolate specs that do not play well with others, in addition it can be faster to isolate very large spec files so that they run in their own webdriver/browser so they don't block other specs that run quickly. Spec files that take more than a couple of minutes to run in isolation should probably isolated.
Type: Number
Default: 8
The maximum number of webdrivers/browsers allowed to run in parallel.
Type: Number
Default: 'Spec files are divided among the available runners e.g. Math.ceil(options.specs.length / options.maxSpecRunners)`
The maximum number of spec files to be included per runner. e.g. --maxSpecFilesPerRunner=1 is equivalent to using --isolateAllSpecs.
Type: Boolean
Default: false
Sets the maximum number of spec files to be included per runner to 1: e.g. --maxSpecFilesPerRunner=1 This is useful to find specs that cannot run in isolation. NOTE: Grab some coffee... this will take a while, I suggest that you pipe the output to a file. e.g. grunt test:faster --isolateAllSpecs > results.txt
Type: Boolean
Default: false
Prevents _SpecRunner.*.html files from being deleted and leaves the express server running. This is useful for debugging so that individual spec files can be run again manually
Type: Boolean
Default: false
Specify the --verbose options to generate the full output from all subtask. In addition the --verbose options will cause the result summary to include the list of spec files for each runner.
Includes:
Summary Row:
Total Execution Time: The actual elapsed time to run all test in parallel
Normal output will includes the spec files that had failures in each runner:
Verbose output includes the specs files that were included in each runner:
Copyright (c) 2015 Ronn McQueen Licensed under the MIT license.
FAQs
Plugin used to configure and launch multiple spec
The npm package grunt-parallel-spec-runner receives a total of 2 weekly downloads. As such, grunt-parallel-spec-runner popularity was classified as not popular.
We found that grunt-parallel-spec-runner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.