alex-seville / grunt-blanket

grunt task to instrument files for code coverage using Blanket.js
http://blanketjs.org
MIT License
29 stars 6 forks source link

Including and excluding individual files to be instrumented. #13

Open deflagg opened 9 years ago

deflagg commented 9 years ago

My pattern option is formatted as follows:

blanket: {    coverage: {       options: {          "pattern": ['../UI/Scripts/Utilities.js']       },       expand: true,       cwd: "../UI/",        src: ['Scripts/ViewModels/', '!Scripts/ViewModels/dist/'],        dest: './Client/Coverage/'    } }

The files for the 'src' property are instrumented and written to the 'dest' location. However the Utilities.js file never got written to the 'dest' location. I took a look at the code and it looks like the only files that get instrumented AND written to the destination folder are the files in the 'src' property. I believe the files in the 'pattern' property do get instrumented (live) and thus never get written to the 'dest' property. Am I analyzing this correctly and if not, where did I go wrong in the above code?