From: Markus Fischer Date: 2011-04-19T03:48:44+09:00 Subject: Re: Rakefile and simplecov 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