Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #3095
| From | Markus Fischer <markus@fischer.name> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Rakefile and simplecov |
| Date | Mon, 18 Apr 2011 05:58:53 -0500 |
| Organization | Service de news de lacave.net |
| Lines | 34 |
| Message-ID | <4DAC1965.2060507@fischer.name> (permalink) |
| NNTP-Posting-Host | bristol.highgroove.com |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | talisker.lacave.net 1303125080 47120 65.111.164.187 (18 Apr 2011 11:11:20 GMT) |
| X-Complaints-To | abuse@lacave.net |
| NNTP-Posting-Date | Mon, 18 Apr 2011 11:11:20 +0000 (UTC) |
| X-Received-From | This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway |
| X-Mail-Count | 381774 |
| X-Ml-Name | ruby-talk |
| X-Rubymirror | Yes |
| X-Ruby-Talk | <4DAC1965.2060507@fischer.name> |
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.stben.net!talisker.lacave.net!lacave.net!not-for-mail |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.ruby:3095 |
Show key headers only | 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 | Next — Next in thread | Find similar | Unroll 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