Skip to content

Commit

Permalink
Raise the bar on test coverage from 80% to 90%
Browse files Browse the repository at this point in the history
  • Loading branch information
mdittmer committed Jan 28, 2016
1 parent 7ab88a5 commit 1c8c0e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion checkCoverage.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
var MIN_METRIC_COVERAGE = 90.0;

var data = '';
process.stdin.on('data', function(chunk) { data += chunk; });
process.stdin.on('end', function() {
Expand All @@ -7,7 +9,7 @@ process.stdin.on('end', function() {
match = regExp.exec(data);
if (match) {
var percent = parseFloat(match[0].substring(0, match[0].length - 1));
if (percent < 80) {
if (percent < MIN_METRIC_COVERAGE) {
console.error('Insufficient code coverage');
process.exit(1);
}
Expand Down

0 comments on commit 1c8c0e0

Please sign in to comment.