Skip to content

Commit

Permalink
Exit with code 0 on success, 1 if there are errors. Fixes #38
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed Oct 17, 2016
1 parent d972ff4 commit 2a78445
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ The most common use case is to do `hyperlink path/to/index.html -r`, giving `hyp
Integrations
------------

Hyperlink exits with an error code equal to the number of errors encountered, making it a useful CI tool.

Hyperlink is using the [TAP](https://testanything.org/) output format, which is sort of human readable, and very machine readable. Use the TAP output in your CI setup, or pipe the output through one of these awesome formatters to get improved human readability, an output Jenkins likes, or whatever you want: [tap-colorize](https://www.npmjs.com/package/tap-colorize) [tap-difflet](https://www.npmjs.com/package/tap-difflet) [tap-dot](https://www.npmjs.com/package/tap-dot) [tap-json](https://www.npmjs.com/package/tap-json) [tap-min](https://www.npmjs.com/package/tap-min) [tap-nyan](https://www.npmjs.com/package/tap-nyan) [tap-spec](https://www.npmjs.com/package/tap-spec) [tap-xunit](https://www.npmjs.com/package/tap-xunit)

**Example:**
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,6 @@ module.exports = function (options) {
// .writeStatsToStderr()
.run(function () {
t.close();
process.exit(errorCount);
process.exit(errorCount ? 1 : 0);
});
};

0 comments on commit 2a78445

Please sign in to comment.