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 can ibrik be used with jasmine-node? #5

Open
es128 opened this issue Jun 10, 2013 · 1 comment
Open

how can ibrik be used with jasmine-node? #5

es128 opened this issue Jun 10, 2013 · 1 comment

Comments

@es128
Copy link

es128 commented Jun 10, 2013

I have figured out how to use istanbul with coffee-coverage to get coverage reports of the compiled version of my code by doing something like this:

  1. coffeecoverage lib lib-cov --bare (note the bare option was recently added to the master branch of the project, it's not published to npm yet)
  2. change spec files to require lib-cov versions
  3. istanbul cover jasmine-node -- test --coffee

However, it would be much better to get the reports to be based on coffee src files as ibrik seems to be able to do. Also, some of the coffee-coverage instrumentation code is being picked up as uncovered, which messes up the stats.

If I try to use ibrik as a drop-in replacement for istanbul (ibrik cover jasmine-node -- test --coffee with spec files pointing to lib) the tests run, but at the end I get No coverage information was collected, exit without writing coverage information.

Any suggestions?

@es128
Copy link
Author

es128 commented Jun 10, 2013

I just figured out that I get better reporting/stats by eliminating coffee-coverage from the workflow described above and just using the regular coffee-script compiler before running istanbul.

But it would still be great if there were a way to do the same thing in ibrik. Hope there is a simple solution.

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

1 participant