r3b / grunt-protractor-coverage

Coverage analysis for Protractor tests
Apache License 2.0
38 stars 29 forks source link

Extract the global coverage runner and configurable saveCoverage.tmpl path #34

Closed ali-bugdayci closed 9 years ago

ali-bugdayci commented 9 years ago

1) Extract the global coverage runner incase it needs to be run manually, like:

if (typeof runCoverageGlobal !== "undefined")
  runCoverageGlobal();

This is necessary before calling browser.refresh() or if there is any normal form posts to server.

2) Make the template file path configurable from the Gruntfile. Currently it looks at specific path: "resources/saveCoverage.tmpl"

r3b commented 9 years ago

Looks good to me. Thanks for the contribution and apologies for the slow response.