jasmine-node
Advanced tools
Comparing version 1.14.2 to 1.14.3
@@ -285,4 +285,4 @@ var util, | ||
function printVersion(){ | ||
console.log("1.14.2"); | ||
console.log("1.14.3"); | ||
process.exit(0); | ||
} |
@@ -37,2 +37,3 @@ var fs = require('fs'); | ||
jasmine.TerminalReporter = nodeReporters.TerminalReporter; | ||
jasmine.TeamcityReporter = nodeReporters.TeamcityReporter; | ||
jasmine.GrowlReporter = require('jasmine-growl-reporter'); | ||
@@ -127,3 +128,3 @@ | ||
if(teamcity){ | ||
jasmineEnv.addReporter(new jasmine.TeamcityReporter()); | ||
jasmineEnv.addReporter(new jasmine.TeamcityReporter({onComplete: done})); | ||
} else if(isVerbose) { | ||
@@ -130,0 +131,0 @@ jasmineEnv.addReporter(new jasmine.TerminalVerboseReporter({ print: print, |
@@ -325,2 +325,15 @@ (function() { | ||
// Extend Teamcity Reporter | ||
jasmineNode.TeamcityReporter = function(config) { | ||
var callback_ = config.onComplete || false; | ||
(function(superFn) { | ||
jasmineNode.TeamcityReporter.prototype.reportRunnerResults = function(runner) { | ||
superFn.call(this, runner); | ||
if (callback_) {callback_(runner)} | ||
} | ||
}(jasmine.TeamcityReporter.prototype.reportRunnerResults)); | ||
}; | ||
jasmineNode.TeamcityReporter.prototype = new jasmine.TeamcityReporter; | ||
// | ||
@@ -327,0 +340,0 @@ // Exports |
{ | ||
"name": "jasmine-node", | ||
"version": "1.14.2", | ||
"version": "1.14.3", | ||
"description": "DOM-less simple JavaScript BDD testing framework for Node", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
@@ -84,3 +84,3 @@ jasmine-node | ||
* `--noColor`, do not use color in the output | ||
* `-m, --match REGEXP`, match only specs comtaining "REGEXPspec" | ||
* `-m, --match REGEXP`, match only specs containing "REGEXPspec" | ||
* `--matchall`, relax requirement of "spec" in spec file names | ||
@@ -242,2 +242,4 @@ * `--verbose`, verbose output as the specs are run | ||
* _1.14.3_ Added 'onComplete' callback to TeamCityReporter (thanks to [JoergFiedler](https://github.com/JoergFiedler)) | ||
* _1.14.2_ Uhhh...not sure what happened here. | ||
* _1.14.1_ Default to noColors if not in a TTY | ||
@@ -244,0 +246,0 @@ * _1.14.0_ Add support for `iit`, `ddescribe` (thanks to [mgcrea](https://github.com/mgcrea)) |
Sorry, the diff of this file is not supported yet
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
164257
4393
285