I have a large project I'm writing intern tests against, I'm able to generate 90%+ coverage for my own package however coverage is being reported much less than this because other packages (such as dojo, dijit etc) are also being included in the report total.

Is there an 'out of the box' intern way to exclude files from coverage reports?

Istanbul supports an 'exclude-pattern', is it simply a case of writing another custom intern reporter to configure excludes?

有帮助吗?

解决方案

Use the excludeInstrumentation configuration property. It is a regular expression of paths to exclude. See https://github.com/theintern/intern/wiki/Configuring-Intern for more information.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top