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.
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 essentially a wrapper around jasmine-fail-fast
, solving the problem of halting multiple Protractor instances once one of them has failed. Otherwise, a multi-capability Protractor test will take as long as the longest running test instance, potentially as long as if jasmine-fail-fast
wasn't applied at all.
npm install protractor-fail-fast
In the Protractor conf:
var failFast = require('protractor-fail-fast');
exports.config = {
plugins: [{
package: 'protractor-fail-fast'
}],
onPrepare: function() {
jasmine.getEnv().addReporter(failFast.init());
},
afterLaunch: function() {
failFast.clean(); // Cleans up the "fail file" (see below)
}
}
In order to facilitate communication between the test instances (and for the lack of a better known option), protractor-fail-fast
writes to an empty file, .protractor-failed
, whenever a test fails. The presence of this file triggers all other test instances to skip the rest of their tests.
The init
and clean
methods will remove this file, but it may still remain if, for example, the afterLaunch
Protractor hook isn't executed due to an aborted test run. For that reason, it's recommended to add .protractor-failed
to .gitignore
.
1.0.2
protractor
as a < 2.2.0
peerDependency
to indicate that 1.x
isn't compatible with protractor
2.2.0
and above.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.
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.