Constellation / ibrik

CoffeeScript meets Istanbul - code coverage tool for CoffeeScript
BSD 2-Clause "Simplified" License
79 stars 32 forks source link

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

Open es128 opened 11 years ago

es128 commented 11 years ago

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 commented 11 years ago

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.