Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #3095

Rakefile and simplecov

From Markus Fischer <markus@fischer.name>
Newsgroups comp.lang.ruby
Subject Rakefile and simplecov
Date 2011-04-18 05:58 -0500
Organization Service de news de lacave.net
Message-ID <4DAC1965.2060507@fischer.name> (permalink)

Show all headers | View raw


Hi,

I've a Rakefile generated by jeweler. It uses rcov default but that 
doesn't properly work with 1.9 (I'm using 1.9.2), so I'd like to enable 
simplecov for my tests. I've used simplecov successfully without a Rakefile.

I added

   gem "simplecov", ">= 0.4.0"

to Gemfile and modified the test task:

require 'rake/testtask'
require 'simplecov'
Rake::TestTask.new(:test) do |test|
   SimpleCov.start do
       add_filter 'test_'
   end
   test.libs << 'lib' << 'test'
   test.pattern = 'test/**/test_*.rb'
   test.verbose = true
end

simplecov is executed, but doesn't record anything:

Coverage report generated for rake  to coverage. 0 / 0 LOC (0.0%) covered.

As far as I can see, simplecov doesn't provide a ready rake task, how 
can I use it in this case? I've gone through the rake documentation but 
didn't spot anything obvious I'm missing.

thanks,
- Markus

Back to comp.lang.ruby | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Rakefile and simplecov Markus Fischer <markus@fischer.name> - 2011-04-18 05:58 -0500
  Re: Rakefile and simplecov Steve Klabnik <steve@steveklabnik.com> - 2011-04-18 11:11 -0500
    Re: Rakefile and simplecov Markus Fischer <markus@fischer.name> - 2011-04-18 13:48 -0500

csiph-web