I use the CodeCoverageExcludes optiion to exclude handlebars, jquery and other 3rd party libraries from being instrumented (including them gives timeouts in many tests). However, that option is only used within chutzpah code.
Is there any reason for not passing these options to blanket.js in the data-cover-never attribute? Scripts that are loaded through requirejs are not properly excluded, because blanket.js is not told to exclude them.
Comments: If I remember correctly Chutzpah fills the data-cover-never attribute with the list of referenced files that match your exclude pattern. But my guess is since you are using requirejs Chutzpah doesn't know about that file statically and doesn't add it to that attribute. Options here are 1. Chutzpah fix to transform the coverage excludes from glob to regex and include in the data-cover attributes. This would have to come in some future release. 2. You can tell Chutzpah about your referenced files use the reference setting in the chutzpah.json file. You can tell it to not include this file in the html doc but it will still let chutzpah know about it to add it to the exclude list.
Is there any reason for not passing these options to blanket.js in the data-cover-never attribute? Scripts that are loaded through requirejs are not properly excluded, because blanket.js is not told to exclude them.
Comments: If I remember correctly Chutzpah fills the data-cover-never attribute with the list of referenced files that match your exclude pattern. But my guess is since you are using requirejs Chutzpah doesn't know about that file statically and doesn't add it to that attribute. Options here are 1. Chutzpah fix to transform the coverage excludes from glob to regex and include in the data-cover attributes. This would have to come in some future release. 2. You can tell Chutzpah about your referenced files use the reference setting in the chutzpah.json file. You can tell it to not include this file in the html doc but it will still let chutzpah know about it to add it to the exclude list.