File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -124,11 +124,16 @@ function sh(binary, args) {
124
124
125
125
async function runTests ( ) {
126
126
const shellBinary = logGroup ( `Installing JavaScript Shell: ${ SHELL_NAME } ` , testSetup ) ;
127
- runTest ( "Run Complete Suite" , ( ) => sh ( shellBinary , [ CLI_PATH ] ) ) ;
128
- runTest ( "Run Single Suite" , ( ) => {
127
+ let success = true ;
128
+ success &&= runTest ( "Run Complete Suite" , ( ) => sh ( shellBinary , [ CLI_PATH ] ) ) ;
129
+ success &&= runTest ( "Run Single Suite" , ( ) => {
129
130
const singleTestArgs = [ ...BASE_CLI_ARGS_WITH_OPTIONS , "proxy-mobx" ] ;
130
131
sh ( shellBinary , singleTestArgs ) ;
131
132
} ) ;
133
+ if ( ! success ) {
134
+ console . error ( "TEST FAILURES" )
135
+ process . exit ( 1 )
136
+ }
132
137
}
133
138
134
139
function jsvuOSName ( ) {
@@ -169,7 +174,9 @@ function runTest(testName, test) {
169
174
logGroup ( testName , test )
170
175
} catch ( e ) {
171
176
console . error ( "TEST FAILED" )
177
+ return false
172
178
}
179
+ return true
173
180
}
174
181
175
182
setImmediate ( runTests ) ;
You can’t perform that action at this time.
0 commit comments