Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

give the test runner a sensible return code

  • Loading branch information...
commit e8e9ec5648aeb34994e20b5616c6c9dea30cf6d3 1 parent 466f414
@adamstallard adamstallard authored
Showing with 15 additions and 2 deletions.
  1. +1 −1  package.json
  2. +14 −1 test/all.js
View
2  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" : {
View
15 test/all.js
@@ -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);
+});
Please sign in to comment.
Something went wrong with that request. Please try again.