Skip to content

Commit

Permalink
give the test runner a sensible return code
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstallard committed Dec 26, 2012
1 parent 466f414 commit e8e9ec5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name" : "modest",
"version" : "1.17.6",
"version" : "1.17.7",
"description" : "Create HTML modules (building blocks) that look like new HTML tags. Use modules to form other modules. Easily pass parameters from multiple sources to modules and inner modules. Use as a drop-in templating language to any web framework.",
"keywords" : ["xhtml","html","semantic","template","templating","preview","modular","tags","modules","browser","web"],
"author" : {
Expand Down
15 changes: 14 additions & 1 deletion test/all.js
Expand Up @@ -6,6 +6,19 @@ var opts = {
reporter : spec
};

var failedCount = 0;

function addFailures(results){
if(results){
failedCount += results.broken;
failedCount += results.errored;
}
}

// all tests

require('./ModestCompilerTests').suite.run(opts);
var suite = require('./ModestCompilerTests').suite.run(opts,addFailures);

process.on('exit', function(){
process.exit(failedCount);
});

0 comments on commit e8e9ec5

Please sign in to comment.