Open krampstudio opened 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.
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...
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
).