gotwarlost / istanbul

Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Other
8.7k stars 787 forks source link

folders covered with protractor #746

Closed c5c86a closed 7 years ago

c5c86a commented 7 years ago

The following npm script covers only the test code and not the app code, is this the expected result?

./node_modules/.bin/istanbul test --include-all-sources ./node_modules/.bin/protractor protractor.config.js https://github.com/nicosmaris/js/blob/master/package.json#L8

https://codecov.io/gh/nicosmaris/js/src/a4576ee875b7f43d3bd00862eb22ae947d0abf70/app/helloworld.js

c5c86a commented 7 years ago

I found the answer, but it would be good to have it at this repo too.

https://github.com/r3b/grunt-protractor-coverage#default-options