Add initial code coverage reporting

This commit is contained in:
Kevin Sawicki 2016-08-02 10:38:51 -07:00
parent 15e6028f38
commit afdff69482
4 changed files with 53 additions and 1 deletions

View file

@ -63,6 +63,10 @@ ipcMain.on('echo', function (event, msg) {
event.returnValue = msg
})
ipcMain.on('get-coverage', function(event) {
event.returnValue = global.__coverage__
})
global.isCi = !!argv.ci
if (global.isCi) {
process.removeAllListeners('uncaughtException')