GruntBlanketMocha / grunt-blanket-mocha

Headless Blanket.js code coverage and Mocha testing via PhantomJS
MIT License
53 stars 37 forks source link

Source file not covered #29

Open krampstudio opened 10 years ago

krampstudio commented 10 years ago

I'm trying to set up blanket for my mocha tests. Everything seems to work fine except that the coverage report is wrong : only the flle loading is covered but not the calls made by the tests. You could have a look on my Gruntfile and on one of the test runner. The project is public as well (on branch coverage-blanket).

geekdave commented 10 years ago

@krampstudio could you please be more specific about the result you were expecting to see? Keep in mind that BlanketJS will only instrument code loaded through RequireJS via a define call. So if a file isn't loaded at all in that manner, it will be invisible to code coverage.

krampstudio commented 10 years ago

I have coverage data for file loading but not for functions called by the test. But have I missed that blanket covers only AMD modules? My library uses old school export to the global context...