mirror of https://github.com/espruino/BangleApps
runapptests - Return number of failed tests as exit code
parent
00f66f31a0
commit
5c5c89878b
|
@ -370,6 +370,10 @@ emu.init({
|
|||
console.log("\n\n");
|
||||
console.log("Overall results:");
|
||||
console.table(testState);
|
||||
|
||||
process.exit(testState.reduce((a,c)=>{
|
||||
return a + ((c.result == "SUCCESS") ? 0 : 1);
|
||||
}, 0))
|
||||
});
|
||||
return p;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue