The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Ensure all source files are included in test coverage reports with Webpack

Ensure all source files are included in test coverage reports with Webpack

4:59
If you’re only instrumenting the files in your project that are under test then your code coverage report will be misleading and it will be difficult for you to track or enforce improvements to application coverage over time. In this lesson we’ll learn how to ensure all source files are included in coverage reports and how to enforce a specific threshold so you can work toward improving application code coverage.
Watch this lesson now
Avatar
egghead.io

If you’re only instrumenting the files in your project that are under test then your code coverage report will be misleading and it will be difficult for you to track or enforce improvements to application coverage over time. In this lesson we’ll learn how to ensure all source files are included in coverage reports and how to enforce a specific threshold so you can work toward improving application code coverage.

Avatar
Kent C.

You'll want to make certain that the glob is correct for your srcGlob. Negative patterns can be a little tricky, so if you're having trouble, see: http://stackoverflow.com/a/37851445/971592

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?