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

Commit

Permalink
Merge pull request #2 from davidahouse/house/1/fail-on-no-tests
Browse files Browse the repository at this point in the history
✨ Now failing if no tests found
  • Loading branch information
davidahouse authored Feb 13, 2020
2 parents 814ee9a + e49f565 commit 2959d78
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parserOptions": {
"ecmaVersion": 2017
},

"env": {
"es6": true
},
"extends": ["prettier"],
"rules": {
"semi": 0,
"radix": [2, "as-needed"],
"max-len": [
"error",
100,
2,
{
"ignoreUrls": true,
"ignoreComments": false,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
]
}
}
3 changes: 3 additions & 0 deletions bin/junit-to-md.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ glob("**/TEST*.xml", async function(err, files) {
if (failedTests > 0) {
console.log("Failing tests detected, so returning a non-zero exit code");
process.exit(1);
} else if (totalTests == 0) {
console.log("No tests detected, so returning a non-zero exit code");
process.exit(1);
}
}
});
Expand Down

0 comments on commit 2959d78

Please sign in to comment.