-
Notifications
You must be signed in to change notification settings - Fork 18
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
broken, I guess? #30
Comments
I ran into this as well. I think these can be considered example rake tasks for rails code coverage. Try running |
Same on ubuntu 10.10 with ruby 1.9.2-head and rails 3. Any fix? |
The fix for me was to use simplecov: https://github.com/colszowka/simplecov It's really nice. |
If this helps anyone, this is looking like an Ubuntu issue. My development virtual machine runs 10.04, and I'm able to get a coverage report thusly: ~/my/rails/project$ sudo ~/.rvm/bin/rake test This led me to the discovery that /dev/console is readable/writable by root and no one else. On a whim I made it world-readable (sudo chmod +r /dev/console), and the new error I get is: openvt: Unable to open /dev/tty8: Permission denied So the answer is buried somewhere in the specific way the Ubuntu handles consoles/ttys/security. I'll post more here if I find anything else out. |
I did
gem install cover_me
, no errors. I see the gem listed when I rungem list
.I added require 'cover_me' to the TOP of my test_helper.rb.
I ran
rails g cover_me:install
. I noticed a new file, lib/tasks/cover_me.rake:namespace :cover_me do
task :report do
require 'cover_me'
CoverMe.complete!
end
end
task :test do
Rake::Task['cover_me:report'].invoke
end
task :spec do
Rake::Task['cover_me:report'].invoke
end
Problems:
When I run
rake -T
I do not see any "cover_me" tasks.When I run
rake cover_me:report
, I get:Couldn't get a file descriptor referring to the console
The text was updated successfully, but these errors were encountered: