Fix failing code-coverage command#4892
Conversation
|
This pull request introduces 1 alert when merging 222ecdf into ac0ce27 - view on LGTM.com new alerts:
|
jsnellbaker
left a comment
There was a problem hiding this comment.
Hi @Fawke
Thanks for putting this together. It successfullly resolved the coverage issues I was experiencing recently when I updated my packages. I did have a question though, please see below when you have the chance.
Thanks.
karma.conf.maker.js
Outdated
| coverageReporter: { | ||
| dir: 'build/coverage', | ||
| reporters: [ | ||
| { type: 'html', subdir: 'karma-html' } | ||
| ] | ||
| }, | ||
|
|
There was a problem hiding this comment.
As a question, I noticed with this block of code added here (and potentially at the reporters variable above), we now seem to always create this coverage directory (such as when we run gulp serve). Is this intended and needed? Or can we alter the code some-what to only generate these folders and files when the test-coverage command is ran?
There was a problem hiding this comment.
@jsnellbaker Thanks for the feedback. That was a good catch, I shouldn't have gotten rid of if(codeCoverage) in function setReporters. I've added it back, and now it only generates coverage folder when we run the command, gulp test-coverage
robertrmartinez
left a comment
There was a problem hiding this comment.
Works again thanks,
I do agree with @jsnellbaker if we can suppress the coverage dir when it is not asked for that would be nice.
|
Hi @Fawke Thanks for resyncing the branch with master. It seems like there is one last thing to address. When I tried to run the Judging from the I think if we update the reporter in the |
|
Hi @jsnellbaker, I did as you said, I changed the type to lcov from html and also changed the paths in gulpfile.js. But after doing that, I'm not getting the error you're getting, but a different error. I read the read the |
|
To note - we addressed permissions issue separately. This all appears to be working as expected now. |
* 'master' of https://github.com/prebid/Prebid.js: (49 commits) Submitting Clicktripz bid adapter (prebid#4929) add UNICORN bid adapter (prebid#4917) 3.12.0-pre 3.11.0 release Eids liveintent ext fix (prebid#4944) add mediaforce bid adapter (prebid#4933) update logic in adpod module for playersize (prebid#4953) Module - Size Mapping V2 (prebid#4690) Lifestreet adapter 3.0 (prebid#4927) IX Adapter - Increase banner TTL to 300s (prebid#4957) assert string returned not that we break things (prebid#4962) added option to url parser to ignore decoding entire url (prebid#4938) adding user-id support in medianet adapter (prebid#4925) removing the log (prebid#4960) add import extensions (prebid#4959) Add 7xbid adapter to compatible with prebid 3.0 (prebid#4908) Fix failing code-coverage command (prebid#4892) enable no-console eslint rule for project (prebid#4802) update audigent tests to fix larger test suite issue (prebid#4952) use bidId or bidIds in the payload (prebid#4903) ...
* master: (49 commits) Submitting Clicktripz bid adapter (prebid#4929) add UNICORN bid adapter (prebid#4917) 3.12.0-pre 3.11.0 release Eids liveintent ext fix (prebid#4944) add mediaforce bid adapter (prebid#4933) update logic in adpod module for playersize (prebid#4953) Module - Size Mapping V2 (prebid#4690) Lifestreet adapter 3.0 (prebid#4927) IX Adapter - Increase banner TTL to 300s (prebid#4957) assert string returned not that we break things (prebid#4962) added option to url parser to ignore decoding entire url (prebid#4938) adding user-id support in medianet adapter (prebid#4925) removing the log (prebid#4960) add import extensions (prebid#4959) Add 7xbid adapter to compatible with prebid 3.0 (prebid#4908) Fix failing code-coverage command (prebid#4892) enable no-console eslint rule for project (prebid#4802) update audigent tests to fix larger test suite issue (prebid#4952) use bidId or bidIds in the payload (prebid#4903) ...
* replace karma-coverage-istanbul-reporter with karma-coverage * remove unused variable * create coverage folder when required * merge with master to fix issue of all unit tests not running * update processKillTimeout to 10secs * change reporter type html to lcov

Type of change
Description of change
Commands

gulp test-coverage->gulp view-coverageare not generating code coverage reports after updating npm packages.The fix is to replace module
karma-coverage-istanbul-reporterwithkarma-coverage.