File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 3
3
"description" : " Tests for opencv js bindings" ,
4
4
"version" : " 1.0.0" ,
5
5
"dependencies" : {
6
- "qunit" : " latest"
6
+ "node- qunit" : " latest"
7
7
},
8
8
"devDependencies" : {
9
9
"eslint" : " latest" ,
18
18
},
19
19
"keywords" : [],
20
20
"author" : " " ,
21
- "license" : " BSD-4 -Clause" ,
21
+ "license" : " BSD-3 -Clause" ,
22
22
"bugs" : {
23
23
"url" : " https://github.com/opencv/opencv/issues"
24
24
},
Original file line number Diff line number Diff line change 38
38
// the use of this software, even if advised of the possibility of such damage.
39
39
//
40
40
41
- let testrunner = require ( 'qunit' ) ;
41
+ let testrunner = require ( 'node- qunit' ) ;
42
42
testrunner . options . maxBlockDuration = 20000 ; // cause opencv_js.js need time to load
43
43
44
44
testrunner . run (
@@ -49,5 +49,10 @@ testrunner.run(
49
49
} ,
50
50
function ( err , report ) {
51
51
console . log ( report . failed + ' failed, ' + report . passed + ' passed' ) ;
52
+ if ( report . failed ) {
53
+ process . on ( 'exit' , function ( ) {
54
+ process . exit ( 1 ) ;
55
+ } ) ;
56
+ }
52
57
}
53
58
) ;
You can’t perform that action at this time.
0 commit comments