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

Tim Harding tim.harding at gmail.com
Tue Apr 22 11:08:28 EDT 2008


But then I don't know anyone that uses Ruby for non-Rails development and
the two are nearly synonymous for me, I guess you might not be a Rails
developer.

On Tue, Apr 22, 2008 at 4:06 PM, Tim Harding <tim.harding at gmail.com> wrote:

> 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/873988f6/attachment.html 


More information about the Cruisecontrolrb-users mailing list