Comments (12)
Very odd, everything works fine for me. I'll have a look - thanks for the report.
from simplecov-html.
Hi, I double-checked against a couple of my projects: Rails with Shoulda, Gems with Shoulda and RSpec, 0.4.0 works properly for me.
Could you please double-check the versions of simplecov and simplecov-html in your Gemfile? They should both be 0.4.0. If they're not, please post what they are so I can check out the version incompabilities.
from simplecov-html.
I've just installed simplecov and I've got the same problem. Using Ruby 1.9, Rails 3.0.4 and RSpec 2.5 on Ubuntu 10.10. My Gemfile.lock is as follows:
$ grep simplecov Gemfile.lock
simplecov (0.4.0)
simplecov-html (~> 0.4.0)
simplecov-html (0.4.0)
simplecov
from simplecov-html.
Just wanted to add that I get the same error with Ruby 1.8.7 as well.
from simplecov-html.
I'm seeing the same issue as well. Ruby 1.9.2-p136, Rails 3.0.3, RSpec/RSpec-Rails 2.5.0, Mac OS X 10.6.6.
$ grep simplecov Gemfile.lock
simplecov (0.4.0)
simplecov-html (~> 0.4.0)
simplecov-html (0.4.0)
simplecov (~> 0.4.0)
from simplecov-html.
diegorv has submitted this issue to simplecov as well, see https://github.com/colszowka/simplecov/issues/issue/21
He's submitted a patch for the loadpath of th version file, which should fix this issue.
Version 0.4.2 is released (I managed to mess up on 0.4.1), so everyone affected please do a bundle update simplecov-html. Hope this fixes the problem for you, please report back!
As everyone affected seems to be using Rails in conjunction with RSpec, it seems that rspec-rails does something differently with load paths than test unit and even plain RSpec... Very odd indeed :/
from simplecov-html.
Well...
After 0.4.2 i get this:
/Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/simplecov-html-0.4.2/lib/simplecov-html.rb:10:in `require': no such file to load -- simplecov (LoadError)
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/simplecov-html-0.4.2/lib/simplecov-html.rb:10:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/simplecov-0.4.0/lib/simplecov.rb:122:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:33:in `require'
from <internal:lib/rubygems/custom_require>:33:in `rescue in require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /Users/diegorv/Documents/rails/work/phenix/spec/spec_helper.rb:5:in `block in <top (required)>'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/spork-0.8.4/lib/spork.rb:23:in `prefork'
from /Users/diegorv/Documents/rails/work/phenix/spec/spec_helper.rb:4:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /Users/diegorv/Documents/rails/work/phenix/spec/helpers/admin/admin_helper_spec.rb:3:in `<top (required)>'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in `load'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in `block in load_spec_files'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in `map'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in `load_spec_files'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/rspec-core-2.5.1/lib/rspec/core/command_line.rb:18:in `run'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:55:in `run_in_process'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:46:in `run'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:10:in `block in autorun'
I think we need take look in paths again... :/
from simplecov-html.
Same as diegorv here.
from simplecov-html.
By removing that line (require 'simplecov') everything works fine.
from simplecov-html.
Dammit, that's a problem I introduced myself on the way because I was having weird test errors. Should be ultimately resolved with 0.4.3, which is being pushed to gemcutter right now, and should be availabe in a couple minutes.
Sorry for that mess, I hope this ultimately resolves the trouble!
from simplecov-html.
Hehe, fixing things for machines you don't have access to is so funny :-).
Everything is working fine here with version 0.4.3.
Thanks!
from simplecov-html.
0.4.3 works for me, too.
Btw: Thanks for the great gem!
from simplecov-html.
Related Issues (20)
- Missed lines color doesn't work for color blind people HOT 1
- jquery-3.4.1 contains vulnerabilities please upgrade to 3.5.1 HOT 6
- Missing asset referenced HOT 1
- Feature proposal: use CDN for assets or put them inline HOT 1
- Feature Request: Update URL with file path. HOT 1
- Feature Request: Silence output_message
- CVE-2022-30123 : rack (2.2.3) HOT 10
- Show test coverage
- Use Float#floor instead of Float#round
- Show loading size
- Fails with `Errno::EACCES: Permission denied @ rb_sysopen` if vendor files are read-only HOT 1
- Symbolic link attack within `coverage` directory can overwrite files elsewhere HOT 1
- New release? HOT 2
- Errors in File.open HOT 2
- Wrong sorting for coverage HOT 6
- Regression: non-ASCII characters are broken HOT 3
- Javascript error in version '0.12.0', some pages cannot be open HOT 15
- Disable pagination HOT 3
- Cannot refresh coverage page directly in version '0.12.0' HOT 4
- Feature proposal: multiple coverages in one html HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simplecov-html.