-
Notifications
You must be signed in to change notification settings - Fork 42
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
Sandboxed module doesn't play nice with code coverage tools like istanbul #25
Comments
Glad to report that I got this monkey patch working completely well: https://gist.github.com/searls/7001427 Not sure whether or how it informs this project. Feel free to close it. |
@searls depends. Would you like your patch to become part of this project? |
My take is this:
I'll close the issue, just food for thought in how you want to manage the project. If you're really excited by this idea, I'd be willing to consider submitting a PR. |
I'm not writing a lot of node.js code these days, so I don't feel strongly about this. But if you / somebody else does, I'd be happy to merge a pull request / give you push access to the repo. |
Right on, thank you. I just put out a feeler to my @testdouble friends in On Wed, Oct 16, 2013 at 11:12 AM, Felix Geisendörfer <
|
I'm using sandboxed-module to practice TDD with isolated unit tests and I'm absolutely loving it—fantastic contribution, all. Thank you! ✨
One thing I'm playing with this evening is integrating istanbul for code coverage and I noticed something fun: stuff required via sandboxed module is missed by istanbul's module load hook that it uses for ad hoc instrumentation of JS. As a result, the subject code I sandbox-require from my unit tests is never required from the coverage tool's perspective. Whoops!
I'm going to work on this through more nuanced usage of istanbul, but in case anyone here has an interest or has seen something like this before I figured it couldn't hurt to open a thread and ask you all.
Cheers!
The text was updated successfully, but these errors were encountered: