benc / simplecov-teamcity-summary

SimpleCov formatter that prints coverage summary information to display in TeamCity.
MIT License
10 stars 6 forks source link

NameError: uninitialized constant SimpleCov #4

Closed steveklebanoff closed 9 years ago

steveklebanoff commented 9 years ago

The simplecov README states to install the gem like so:

gem 'simplecov', :require => false, :group => :test

Simplecov Teamcity Summary states to install the gem like so:

gem 'simplecov-teamcity-summary'

When require => false is set for simplecov, and not set for simplecov-teamcity-summary, the following error is raised when trying to run tests:

NameError: uninitialized constant SimpleCov
/Users/steve/.rvm/gems/ruby-2.1.5@mycase_notifications/gems/simplecov-teamcity-summary-0.1.1/lib/simplecov-teamcity-summary/fo
rmatter.rb:2:in `<top (required)>'

It'd be nice if SimpleCov Teamcity Summary explicitly required simplecov, so it would work with the default simplecov installation.

steveklebanoff commented 9 years ago

I think this got removed in https://github.com/benc/simplecov-teamcity-summary/pull/1/files