Comparing version 0.2.0 to 0.2.1
# Changelog | ||
## 0.1.4 | ||
## 0.2.1 | ||
* Fix bug where process wouldn't exit correctly | ||
## 0.2.0 | ||
* Add support for 'pending' tag (you can add it to fenced code blocks) | ||
@@ -6,0 +10,0 @@ * Fix -v version output |
@@ -91,5 +91,10 @@ var runner = require('./runner') | ||
runner(options).run() | ||
runner(options).run(function(results) { | ||
var status = 0 | ||
if (results.broken) status += 1 | ||
if (results.errored) status += 2 | ||
process.exit(status) | ||
}) | ||
} | ||
module.exports = run |
@@ -6,2 +6,3 @@ var LiterAPI = require('literapi') | ||
, console = require('./console') | ||
, vows_console = require('vows/lib/vows/console') | ||
@@ -87,2 +88,3 @@ // Return the output markup for the suite after it has been run. This will be | ||
if (!suite.batches.length) { | ||
this.running-- | ||
return this.next() | ||
@@ -129,10 +131,9 @@ } | ||
if (this.running <= 0) { | ||
var status = 0 | ||
if (this.results.broken) status += 1 | ||
if (this.results.errored) status += 2 | ||
process.exit(status) | ||
process.stdout.write(vows_console.result(this.results).join("\n")) | ||
this.cb(this.results) | ||
} | ||
} | ||
Runner.prototype.run = function run() { | ||
Runner.prototype.run = function run(cb) { | ||
this.cb = cb | ||
return this.next() | ||
@@ -139,0 +140,0 @@ } |
{ "name": "literapi" | ||
, "version": "0.2.0" | ||
, "version": "0.2.1" | ||
, "description": "Literate testing for HTTP APIs using markdown" | ||
@@ -4,0 +4,0 @@ , "keywords": ["testing", "test", "api", "rest", "http", "documentation", "docs", "literate"] |
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
36226
607