Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source file not covered #29

Open
krampstudio opened this issue Oct 26, 2014 · 2 comments
Open

Source file not covered #29

krampstudio opened this issue Oct 26, 2014 · 2 comments

Comments

@krampstudio
Copy link

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
Copy link
Contributor

geekdave commented Nov 9, 2014

@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
Copy link
Author

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants