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.
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.
Type: String
Specify the --burnin options to run a single spec file 100 times in parallel, the results of each run will be output to a table this can be useful for finding flaky test NOTE: you must specify the full relative path to the spec file e.g. grunt test:faster:firefox --burnin=rui/test/javascripts/rui/ui/notify/NotificationContainerSpec.js
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
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.