I'm having problems adding test code coverage, I use Karma, and the files added to Karma are already connected to the browser, so in karma.conf.coffee it looks like this:
files: [ { pattern:'bin/public/client/app.js', served:yes: included:yes } { pattern:'src/lib/vendor/angular-mocks/angular-mocks.js', served:yes: included:yes } { pattern:'bin/tests.js', served:yes: included:no } ]
And it works to run the test, but not to cover
I am using karma-coverage npm package and this:
preprocessors: 'bin/public/client/app.js':['coverage'] reporters: ['progress','coverage']
Actually, coverage status files are created, but this is completely wrong because it blushes the parts that the browser brings from node_modules (because I have no tests to cover them)
Ideally, I have to collect the source maps that the browser generates and run the coverage for them, but browsers force the source maps into .js files. Using karma-sourcemap-loader allows me to see the coffeescript test source files when debugging (for some reason, it only works in ChromeCanary, however it works)
I tried to do preprocessors: 'src/client/**/*.coffee':['coverage'] , but this gives no statistics at all, saying "There is no data to display"
Do you have any ideas?
UPD:
I realized by doing the browserify-istanbul conversion right after coffeeify , and this gave me a good diagram as follows: 
Now I need to somehow remove app.js from it, because actually it doesn't matter and really confuses
upd:
Oh, instead of javascript, I have to provide coffee files:
preprocessors : { 'bin/tests.js': ['sourcemap'] 'src/client/**/*.coffee': ['coverage'] }