"description": "Tests for opencv js bindings",
"version": "1.0.0",
"dependencies" : {
- "qunit" : "latest"
+ "node-qunit" : "latest"
},
"devDependencies": {
"eslint" : "latest",
},
"keywords": [],
"author": "",
- "license": "BSD-4-Clause",
+ "license": "BSD-3-Clause",
"bugs": {
"url": "https://github.com/opencv/opencv/issues"
},
// the use of this software, even if advised of the possibility of such damage.
//
-let testrunner = require('qunit');
+let testrunner = require('node-qunit');
testrunner.options.maxBlockDuration = 20000; // cause opencv_js.js need time to load
testrunner.run(
},
function(err, report) {
console.log(report.failed + ' failed, ' + report.passed + ' passed');
+ if (report.failed) {
+ process.on('exit', function() {
+ process.exit(1);
+ });
+ }
}
);