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 786 forks source link

Excludes configuration requires path as of 0.4.5 #703

Open src-code opened 8 years ago

src-code commented 8 years ago

As of 0.4.5, previous configuration of excludes will fail if the filename doesn't include a path or glob. For instance, for the file util.js in the directory /lib/:

instrumentation:
    excludes:
        - 'util.js'

Worked in 0.4.4 and earlier versions. In 0.4.5, it no longer is applied. The configuration must be updated to:

instrumentation:
    excludes:
        - 'lib/util.js'

... or some sort of glob.

src-code commented 8 years ago

fyi @popomore @graingert

graingert commented 8 years ago

Hullo?