jasmine-node
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -139,2 +139,10 @@ var util, | ||
help(); | ||
} else { | ||
// Check to see if all our files exist | ||
for (var idx = 0; idx < specFolders.length; idx++) { | ||
if (!fs.existsSync(specFolders[idx])) { | ||
console.log("File: " + specFolders[idx] + " is missing."); | ||
return; | ||
} | ||
} | ||
} | ||
@@ -141,0 +149,0 @@ |
@@ -105,6 +105,3 @@ var fs = require('fs'); | ||
if(teamcity){ | ||
jasmineEnv.addReporter(new jasmine.TerminalReporter({print: util.print, | ||
color: false, | ||
onComplete: done, | ||
stackFilter: removeJasmineFrames})); | ||
jasmineEnv.addReporter(new jasmine.TeamcityReporter()); | ||
} else if(isVerbose) { | ||
@@ -136,3 +133,9 @@ jasmineEnv.addReporter(new jasmine.TerminalVerboseReporter({ print: util.print, | ||
delete require.cache[filename.path()]; | ||
require(filename.path().replace(/\.\w+$/, "")); | ||
// Catch exceptions in loading the spec | ||
try { | ||
require(filename.path().replace(/\.\w+$/, "")); | ||
} catch (e) { | ||
console.log("Exception loading: " + filename.path()); | ||
console.log(e); | ||
} | ||
} | ||
@@ -139,0 +142,0 @@ |
{ | ||
"name": "jasmine-node", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "DOM-less simple JavaScript BDD testing framework for Node", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
@@ -17,2 +17,3 @@ jasmine-node | ||
---------- | ||
* Teamcity Reporter reinstated. | ||
* Ability to specify multiple files to test via list in command line | ||
@@ -30,3 +31,2 @@ * Ability to suppress stack trace with <code>--noStack</code> | ||
* Verbose mode tabs <code>describe</code> blocks much more accurately! | ||
* Now with more exclamation points!! | ||
@@ -147,2 +147,4 @@ install | ||
* _1.6.0 - Teamcity Reporter Reinstated (thanks to [bhcleek](https://github.com/bhcleek))_ | ||
* _1.5.1 - Missing files and require exceptions will now report instead of failing silently_ | ||
* _1.5.0 - Now takes multiple files for execution. (thanks to [abe33](https://github.com/abe33))_ | ||
@@ -149,0 +151,0 @@ * _1.4.0 - Optional flag to suppress stack trace on test failure (thanks to [Lastalas](https://github.com/Lastalas))_ |
@@ -0,1 +1,2 @@ | ||
describe('jasmine-node-flat', function(){ | ||
@@ -2,0 +3,0 @@ it('should pass', function(){ |
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
148561
4077
157