Commit 2210ed4f authored by Alexander Alekhin's avatar Alexander Alekhin Committed by Alexander Alekhin

js: fix tests (qunit -> node-qunit)

parent 55dabd28
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"description": "Tests for opencv js bindings", "description": "Tests for opencv js bindings",
"version": "1.0.0", "version": "1.0.0",
"dependencies" : { "dependencies" : {
"qunit" : "latest" "node-qunit" : "latest"
}, },
"devDependencies": { "devDependencies": {
"eslint" : "latest", "eslint" : "latest",
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "BSD-4-Clause", "license": "BSD-3-Clause",
"bugs": { "bugs": {
"url": "https://github.com/opencv/opencv/issues" "url": "https://github.com/opencv/opencv/issues"
}, },
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
// the use of this software, even if advised of the possibility of such damage. // 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.options.maxBlockDuration = 20000; // cause opencv_js.js need time to load
testrunner.run( testrunner.run(
...@@ -49,5 +49,10 @@ testrunner.run( ...@@ -49,5 +49,10 @@ testrunner.run(
}, },
function(err, report) { function(err, report) {
console.log(report.failed + ' failed, ' + report.passed + ' passed'); console.log(report.failed + ' failed, ' + report.passed + ' passed');
if (report.failed) {
process.on('exit', function() {
process.exit(1);
});
}
} }
); );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment