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

How to use ibrik as a module from outside code #4

Open
bahmutov opened this issue Feb 22, 2013 · 1 comment
Open

How to use ibrik as a module from outside code #4

bahmutov opened this issue Feb 22, 2013 · 1 comment

Comments

@bahmutov
Copy link

Hi,

Great initial code, but is there a way to use ibrik as a plugin module, for example from a unit testing framework? I have my own unit testing framework called gt that uses istanbul. Right now it can use coffee files as tests or main code, but does not instrument them. It would be great if there was a way I could include ibrik, let it hook into node's require loader and then generate annotated source report on command when unit tests are done.

Here is istanbul module: https://github.com/bahmutov/gt/blob/master/lib/coverage.js

Gleb

@Constellation
Copy link
Owner

Thanks!

I've merged istanbul exports to ibrik exports. db5efdb
So probably I think we can use ibrik by simply replacing your coverage.js module's 'istanbul' to 'ibrik' :)

Of cource, ibrik is still at early stage. When michaelficarra/CoffeeScriptRedux#117 is fixed, ibrik can provide more precise location information. And I'm planning to contribute istanbul not to instrument auto generated code by transpiler.

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