[Cruisecontrolrb-users] Fail build on code coverage level?

Tim Harding tim.harding at gmail.com
Tue Apr 22 11:06:20 EDT 2008


Just found this:

"The answer is vl_cruise_control, a Rails plugin that uses rcov to enforce a
coverage target, and causes CC.rb to mark a build as failed if that target
isn't met. So in addition to regularly checking that all the tests pass, we
also check that all (or substantially all) of our code is accounted for in
our tests. "

Here:

http://www.viget.com/extend/tools-of-the-trade-vl-cruise-control/

That looks like a really nice way of doing what you want... haven't tried
it.

On Tue, Apr 22, 2008 at 2:37 PM, Denis Haskin <denis at haskinferguson.net>
wrote:

>  Thanks to you both -- I'll give that a shot today.
>
> dwh
>
> Chad Woolley wrote:
>
> On Mon, Apr 21, 2008 at 1:39 PM, Bryan Noll <bwnoll at gmail.com> <bwnoll at gmail.com> wrote:
>
>
>  Couldn't you just check in a test that runs `rcov blah ...` somewhere
>  and then parses through the results, checking for the percentage value
>  you're interested in.
>
>  If said percentage value is less than X... assert(false, "You don't have
>  enough tests!")
>
>
>  Or run this test (or something that just raises an exception if
> coverage is low) only as part of a separate rake task, which runs
> after your rcov task (both called from default cruise task)
>
> -- Chad
>
>
> _______________________________________________
> Cruisecontrolrb-users mailing list
> Cruisecontrolrb-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20080422/cd5ac558/attachment.html 


More information about the Cruisecontrolrb-users mailing list