grunt-protractor-coverage icon indicating copy to clipboard operation
grunt-protractor-coverage copied to clipboard

Wrong coverage data

Open ali-bugdayci opened this issue 11 years ago • 1 comments

I have specs that should cover the source files but they are shown as not covered.

Can using the same page on different tests overwrite the coverage reports?

ali-bugdayci avatar Jan 16 '15 11:01 ali-bugdayci

I found the reason(s).

  1. When there is a browser.refresh() or normal form submit that refreshes the browser, the coverage data is lost.

Hence we should be able to runCoverageGlobal() when necessary. I am updating the saveCoverage.tmpl and will be creating a push request.

  1. Currently saveCoverage.tmpl path is hardcoded. We should be able to give save coverage path from the gruntfile.

ali-bugdayci avatar Jan 21 '15 08:01 ali-bugdayci