Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
protractor-fail-fast
Advanced tools
Allow Protractor tests to "fail-fast", exiting on the first failure instead of running all tests no matter what. This can save a great deal of time as Protractor tests are typically slow and expensive.
Allow Protractor tests to "fail-fast", exiting on the first failure instead of running all tests no matter what. This can save a great deal of time as Protractor tests are typically slow and expensive.
This Protractor plugin is effectively a wrapper around jasmine-fail-fast
.
yarn add protractor-fail-fast
npm install protractor-fail-fast
Since test runners run in independent processes, we use a "fail file", .protractor-fail-fast
,
to communicate between them (better ideas welcome). The "fail file" is created when
the plugin is initialized and the test runners then continuously check for the presence
of it. If/when a test runner fails, it will delete the "fail file", signaling to the
other test runners to stop the test run.
It is recommended that .protractor-fail-fast
is added to .gitignore
since this file may be left behind
if all test runners finish successfully. It can removed in the afterLaunch
(see below), but could still
be left behind if Protractor is shut down prior to executing the hook (crash/forced exit).
Inside the Protractor config file:
import failFast from 'protractor-fail-fast';
exports.config = {
plugins: [
failFast.init(),
],
// Optional
afterLaunch: function() {
failFast.clean(); // Removes the fail file once all test runners have completed.
},
}
3.1.0
abortAllShards
option to better support sharding tests.FAQs
Allow Protractor tests to "fail-fast", exiting on the first failure instead of running all tests no matter what. This can save a great deal of time as Protractor tests are typically slow and expensive.
The npm package protractor-fail-fast receives a total of 5,351 weekly downloads. As such, protractor-fail-fast popularity was classified as popular.
We found that protractor-fail-fast 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.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.