You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 26, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 26, 2021. It is now read-only.
sloc value is different from that reported by gulp-sloc due to not showing _All_ files #47
So found out that if the gulp.src does not load the files, then they will not be included in the coverage calculation,
i.e. if the following does not require a code file then it will not be piped into the instrument step
var stream = gulp.src(['./testing/*.js'], {read: false})
makes sense
So I tried this line
var stream = gulp.src(['./testing/_loadAllSource.js'], {read: false})
BUT
That attempts to start my server code, which is not the point, as the Unit tests should be loading just the bits they need in a standalone fashion.
So what is needed is some way of getting all the target files into the instrument step without them starting up or loading files etc.
This module will only give you coverage stats for files that are tested with unit tests. That is a current limitation. Are there files that are being tested with unit tests that are being excluded?
Activity
Smurf-IV commentedon Jan 18, 2016
So found out that if the gulp.src does not load the files, then they will not be included in the coverage calculation,
i.e. if the following does not require a code file then it will not be piped into the instrument step
makes sense
So I tried this line
which has the following in the code
BUT
That attempts to start my server code, which is not the point, as the Unit tests should be loading just the bits they need in a standalone fashion.
So what is needed is some way of getting all the target files into the instrument step without them starting up or loading files etc.
dylanb commentedon Jan 24, 2016
This module will only give you coverage stats for files that are tested with unit tests. That is a current limitation. Are there files that are being tested with unit tests that are being excluded?