Forum: Ruby on Rails Code coverage tools in Ruby?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Caee22b42842c2dad54e18e12651b2d8?d=identicon&s=25 Brian Lin (Guest)
on 2006-01-23 23:53
(Received via mailing list)
Can anyone help me find a code coverage tool in ruby?

What I want is: given a set of tests that I run, what lines of my code
and what routines are covered. And also a list of uncovered routines
and tests.

I couldn't find an open source one out there...

--
www.kenlet.com
55428cbf149e35dd4b65f1d019d04139?d=identicon&s=25 Matthew Palmer (Guest)
on 2006-01-24 03:58
(Received via mailing list)
On Mon, Jan 23, 2006 at 02:53:30PM -0800, Brian Lin wrote:
> Can anyone help me find a code coverage tool in ruby?
>
> What I want is: given a set of tests that I run, what lines of my code
> and what routines are covered. And also a list of uncovered routines
> and tests.
>
> I couldn't find an open source one out there...

I'm using the 'coverage' gem to get the odd bit of statistic.  It's slow
as
buggery, and isn't perfect, but it exists and is released under Ruby's
licence.

- Matt
Caee22b42842c2dad54e18e12651b2d8?d=identicon&s=25 Brian Lin (Guest)
on 2006-01-24 07:24
(Received via mailing list)
cool, thanks, I'll try it out.

On 1/23/06, Matthew Palmer <mpalmer@hezmatt.org> wrote:
> buggery, and isn't perfect, but it exists and is released under Ruby's
> licence.
>
> - Matt
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
www.kenlet.com
E555e7c34196967444a47a96395a23ab?d=identicon&s=25 Stefan Kaes (Guest)
on 2006-01-24 07:27
(Received via mailing list)
Brian Lin wrote:
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>
You could try Ruby Coverage Validator (http://www.softwareverify.com/),
if you're on Windows. I haven't tried it myself, only Ruby Performance
Validator, which is excellent.

-- stefan

--
For rails performance tuning, see: http://railsexpress.de/blog
Subscription: http://railsexpress.de/blog/xml/rss20/feed.xml
67cb6fef42a83929955ce5a5b3f33f6e?d=identicon&s=25 Jon Smirl (Guest)
on 2006-01-24 07:31
(Received via mailing list)
gem install insurance

It is a lot faster.

On 1/24/06, Brian Lin <brianlin@gmail.com> wrote:
> > > I couldn't find an open source one out there...
> >
>
>
> --
> www.kenlet.com
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
Jon Smirl
jonsmirl@gmail.com
59de94a56fd2c198f33d9515d1c05961?d=identicon&s=25 Tom Mornini (Guest)
on 2006-01-24 08:43
(Received via mailing list)
Where are the docs on how to use insurance?

--
-- Tom Mornini
This topic is locked and can not be replied to.