The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
rcov 0.3.0: happier Rails (code coverage analysis)

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Eigen Class

Posts: 358
Nickname: eigenclass
Registered: Oct, 2005

Eigenclass is a hardcore Ruby blog.
rcov 0.3.0: happier Rails (code coverage analysis) Posted: May 5, 2006 2:20 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Eigen Class.
Original Post: rcov 0.3.0: happier Rails (code coverage analysis)
Feed Title: Eigenclass
Feed URL: http://feeds.feedburner.com/eigenclass
Feed Description: Ruby stuff --- trying to stay away from triviality.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Eigen Class
Latest Posts From Eigenclass

Advertisement

Driven by user feedback, rcov 0.3.0 introduces a number of features that simplify the analysis of Rails applications. Moreover, this is the first time a rcovrt binary for win32 (which makes rcov >100 times faster) is released simultaneously.

The new code coverage analysis mode, --test-unit-only, records exclusively code executed inside Test::Unit::TestCase(s). This allows you to see how much of your code was directly unit-tested, and how much was executed indirectly (e.g. run in the initialization phase or executed by the framework outside the tests). Also, this makes rcov 10-20% faster when analyzing a Rails application like Typo (on my old box, rcov runs its unit tests in 13.5s in normal mode compared to ~11s with --test-unit-only). Not quite as spectacular as the >10000% speed increase from 0.1.0 to 0.2.0 though.

Another important addition is the ability to detect aliased source files: this was very needed to analyze Rails apps, where a file could get loaded under several different names, due to the extensive usage of #require with relative paths.

Download from: rcov: code coverage for Ruby

If you're under win32 and cannot build extensions, you can also get the pre-built rcovrt.so binary. This extension was cross-compiled using mingw; here's more information about how to cross-compile for win32.


Read more...

Read: rcov 0.3.0: happier Rails (code coverage analysis)

Topic: The transition to Win32API Previous Topic   Next Topic Topic: Agile Web Development with Rails, Second Edition

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use