Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #3115
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!news.cgarbs.de!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!talisker.lacave.net!lacave.net!not-for-mail |
|---|---|
| From | Markus Fischer <markus@fischer.name> |
| Newsgroups | comp.lang.ruby |
| Subject | Re: Rakefile and simplecov |
| Date | Mon, 18 Apr 2011 13:48:44 -0500 |
| Organization | Service de news de lacave.net |
| Lines | 39 |
| Message-ID | <4DAC8779.60303@fischer.name> (permalink) |
| References | <4DAC1965.2060507@fischer.name> <BANLkTimY6rseYNdsLZjwqEmNQpNO-UfpBw@mail.gmail.com> |
| NNTP-Posting-Host | bristol.highgroove.com |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | talisker.lacave.net 1303152799 97250 65.111.164.187 (18 Apr 2011 18:53:19 GMT) |
| X-Complaints-To | abuse@lacave.net |
| NNTP-Posting-Date | Mon, 18 Apr 2011 18:53:19 +0000 (UTC) |
| In-Reply-To | <BANLkTimY6rseYNdsLZjwqEmNQpNO-UfpBw@mail.gmail.com> |
| 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 | 381793 |
| X-Ml-Name | ruby-talk |
| X-Rubymirror | Yes |
| X-Ruby-Talk | <4DAC8779.60303@fischer.name> |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.ruby:3115 |
Show key headers only | View raw
On 18.04.2011 18:11, Steve Klabnik wrote:
> I'm not super familiar with simplecov, but i just merged a patch that
> implements it on one of my projects this morning:
>
> https://github.com/hotsh/rstat.us/commit/3b21c68e20f97de1090c75cbe34d099700e34d65
>
> Hope that helps you? It runs the coverage report on every task, though.
Thanks, that helped at least get some result. However the coverage
itself is wrong, it's not 12.8% (80/625 LOC), when the real coverage
(standalone without rake) is 597 / 626 LOC (95.37%).
Without the Rakefile, all I do is
$ cat mylib_simplecov.rb
require 'simplecov'
SimpleCov.start do
add_filter '_test'
end
require_relative 'mylib_test'
and mylib_test starts with
$ head mylib_test.rb
require 'test/unit'
require_relative 'mylib'
module MylibTests
class Misc < Test::Unit::TestCase
and that's all and it works.
I thought moving to jeweler and all the other stuff makes things easier,
but currently it made it just harder :/
- Markus
Back to comp.lang.ruby | Previous | Next — Previous 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