Comparing version 0.1.5 to 0.1.6
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
217032
5331