Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Commit

Permalink
✨ Allow for returning non zero exit code if failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidahouse committed Jan 10, 2020
1 parent bea9d19 commit e08599d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/junit-to-md.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,13 @@ glob("**/TEST*.xml", async function(err, files) {

if (output === "text") {
outputText();
} else {
} else if (output === "summary") {
outputSummary();
} else {
if (failedTests > 0) {
console.log("Failing tests detected, so returning a non-zero exit code");
process.exit(1);
}
}
});

Expand Down

0 comments on commit e08599d

Please sign in to comment.