Socket
Socket
Sign inDemoInstall

integra

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

integra - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

40

lib/schedulers/test_runner.js

@@ -178,22 +178,24 @@ var debug = require('../utils').debug

context.setup(function() {
// Execute the test
try {
logger(options.logLevel, 'info', f("started test [%s]", test.name));
testFunction.apply(test.module, [context, testResult]);
} catch(err) {
console.log(formatter.error('✖ ' + test.name));
testResult.addErr(err);
// If we decided to fail fast, due so now
if(!failFast) {
// All plugins that need to run after a test finished
return utils.executeAllPlugins(plugins, "afterTest", test, function() {
process.nextTick(function() {
runTests(context, tests, index + 1, callback);
});
});
}
// Execute the test
try {
logger(options.logLevel, 'info', f("started test [%s]", test.name));
testFunction.apply(test.module, [context, testResult]);
} catch(err) {
console.log(formatter.error('✖ ' + test.name));
console.log(formatter.bold(JSON.stringify(err)));
// Add error to test results
testResult.addErr(err);
// If we decided to fail fast, due so now
if(!failFast) {
// All plugins that need to run after a test finished
return utils.executeAllPlugins(plugins, "afterTest", test, function() {
process.nextTick(function() {
runTests(context, tests, index + 1, callback);
});
});
}
// Throw an error
throw err;
}
// Throw an error
throw err;
}
});

@@ -200,0 +202,0 @@ });

{
"name": "integra",
"version": "0.1.5",
"version": "0.1.6",
"description": "An integration testing framework",

@@ -5,0 +5,0 @@ "main": "index.js",

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