Skip to content

Commit

Permalink
test(coverage): optimize coverage generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Mucsicska committed Aug 19, 2016
1 parent 223c938 commit 0656e12
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -8,7 +8,6 @@ notifications:
node_js:
- '4'
before_install:
- npm i -g npm@^2.0.0
- npm run install-nightwatch-cucumber-with-link
before_script:
- npm prune
Expand Down
11 changes: 10 additions & 1 deletion test/test-case-factory.js
Expand Up @@ -175,7 +175,16 @@ class TestCaseFactory {

return new Promise((resolve, reject) => {
const origArgs = args.slice()
args.unshift('cover', nightwatchPath, '--config', istanbulConfig, '--root', istanbulRoot, '--dir', istanbulDir, '--')
args.unshift(
'cover',
nightwatchPath,
'--config', istanbulConfig,
'--root', istanbulRoot,
'--dir', istanbulDir,
'--report', 'json',
'--print', 'none',
'--'
)
console.log('Executing > ', nightwatchPath, origArgs.join(' '))
const nightwatch = fork(istanbulPath, args, {
stdio: 'inherit',
Expand Down

0 comments on commit 0656e12

Please sign in to comment.