small medium large xlarge

06 Dec 2011, 00:43
Richard Michael (6 posts)

On p225, the section on using test coverage gems was slightly unclear. I initially understood I needed both rcov and SimpleCov with Ruby 1.9, and that SimpleCov was [perhaps] an rcov shim.

To make the exclusion of rcov and SimpleCov clearer, what about mentioning the :platforms option in a Gemfile, and adding the entries in the Appendix 4 Gemfile, as follows:

gem 'rcov', '0.9.11', :platforms => :ruby_18
gem 'SimpleCov', '0.5.4', :platforms => :ruby_19
06 Dec 2011, 20:21
Matt Wynne (92 posts)

Thanks for the feedback Richard. I wish we hadn’t mentioned Ruby 1.8 at all in that section as all the code in the book assumes you’re running 1.9.3 and this is only going to confuse people.

I don’t want to put any more about Ruby 1.8 into the book in case people think they can run the code examples using 1.8, which is bound to lead to problems. I’ll see if I can find a way to explain SimpleCov better.

You must be logged in to comment