Merge pull request #852 from embark-framework/improve-coverage-ux

Improve coverage UX
This commit is contained in:
Iuri Matias 2018-09-17 14:18:27 -04:00 committed by GitHub
commit fade54fca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ module.exports = {
console.log(`Coverage report created. You can find it here: ${fs.dappPath('coverage/index.html')}\n`);
const opn = require('opn');
const _next = () => { next(); };
opn(fs.dappPath('coverage/index.html'), {wait: false})
opn(fs.dappPath('coverage/__root__/index.html'), {wait: false})
.then(() => new Promise(resolve => setTimeout(resolve, 1000)))
.then(_next, _next);
});