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

cover me not creating html files #50

Open
dennisoco opened this issue May 25, 2011 · 5 comments
Open

cover me not creating html files #50

dennisoco opened this issue May 25, 2011 · 5 comments

Comments

@dennisoco
Copy link

I am using ruby 1.9.2 and rails 3.0.7 on windows 7. the coverage folder does not get updated and the are no html files from my rspec tests. the coverage.data file is created and has the correct date time stap when I run rspec spec. the coverage.data file has data in it. if I run rake spec/ I get a rake aborted message after it list the results of the test. require 'cover_me' is the first line in my spec_helper.rb file

@Cluster444
Copy link

I'm not sure why it's not creating it, but I was able to force it to create the coverage data by running rake cover_me:report.

This seems to create all of the data, except it does not include any output in the index.html. I had to point my browser at coverage/app and browse the files manually.

@jperry
Copy link

jperry commented Jun 3, 2011

I have this same issue where it creates only a coverage.data file, I wasn't able to get the rake cover_me:report working though.

@bmoelk
Copy link

bmoelk commented Jun 6, 2011

I had the same issue. Looks like cover_me isn't actually invoking the report generation code within its at_exit processing. I solved this by adding an explicit at_exit block:

  require 'cover_me'
  at_exit do
    CoverMe.complete!
  end

@al6x
Copy link

al6x commented Jun 29, 2011

confirmed, same problem

@adamjmurray
Copy link

Same problem. bmoelk's workaround fixed it for me.

In case this is related: I'm not using bundler (so I'm not following the Gemfile setup and "bundle install" steps explained in cover_me's github README).

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

6 participants