I've got a cc.rb build set up running metric_fu w/
rake db:test:purge db:migrate test metrics:check:thresholds
metrics:check:thresholds depends on metrics:all - metrics:all provides the same percent coverage.
on my Mac OS X 10.5 I get 70.8% coverage
tim@thefactory:~$ uname -a
Darwin thefactory.lan 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
tim@thefactory:~$ ruby --version
ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-darwin9.6.2]
tim@thefactory:~$ gem list | grep metric_fu
jscruggs-metric_fu (1.1.5)
tim@thefactory:~$ gem list | grep rcov
relevance-rcov (0.9.2.1, 0.9.0, 0.8.6)
on linux I get 67.8% coverage
cruise@ci:~/.cruise/projects/theorytest/work$ uname -a
Linux ci 2.6.18.8-linode19 #1 SMP Mon Aug 17 22:19:18 UTC 2009 i686 GNU/Linux
cruise@ci:~/.cruise/projects/theorytest/work$ ruby --version
ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
cruise@ci:~/.cruise/projects/theorytest/work$ gem list | grep metric_fu
jscruggs-metric_fu (1.1.5)
cruise@ci:~/.cruise/projects/theorytest/work$ gem list | grep rcov
relevance-rcov (0.9.2.1, 0.9.0)
It seems like on the rcov reports from the linux ci box some classes have a lower coverage score and their file content listed twice back to back.
In these cases the second set of code in that file is all listed as uncovered. The first half of the listing is marked as covered the same as on the mac.
See here for example:
Help. What am I doing wrong?
Thanks,
-Tim
--
Tim Harding
Muriwai Technologies Ltd
Registered in England & Wales
Company number 5800651
Registered office: 2 Church St, Burnham, Bucks, SL1 7HZ
Well Informed Ltd
Registered in England & Wales
Company number 06707839
Registered office: Suite 235, 77 Beak St, London, W1F 9DB