[rspec-devel] 100 %

aslak hellesoy aslak.hellesoy at gmail.com
Mon Oct 23 01:03:41 EDT 2006


On 10/23/06, Dave Astels <dastels at daveastels.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> On 22-Oct-06, at 8:13 PM, Lachie wrote:
>
> >>> For the first time in history RSpec now has 100% coverage.
> >>
> >> All that means is that there is no code that is not executed during
> >> the run.  It says nothing about the logical coverage.  For that we
> >> need something like Jester.  Is here a ruby version yet?
> >
> > Perhaps this would do the trick:
> > http://blog.zenspider.com/archives/2006/10/
> > heckle_another_rubyconf_hack.html
>
> yes.. exactly.
>

No, not quite (yet). It's tightly coupled to Test::Unit. I've
contacted Ryan and asked him if he wants to decouple it. It should be
easy to do.

I played a little bit with it in RSpec. It shouldn't be too hard to
add native support for this in RSpec so you can say:

spec .... --heckle qualifier

Where qualifier is the name of a module, class or method. Example:

--heckle Spec
--heckle Spec::Expectations::Should::Base
--heckle Spec::Expectations::Should::Base#find_supported_sym

How cool would that be?

> Dave
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (Darwin)
>
> iD8DBQFFPCjDauez/L4x7g4RAqPnAJ9l5WOXqXzN/+JfuEyzY6MEF0WjcwCaA6Oq
> a//ObdxVzEmN8Ii9MistGhw=
> =he/9
> -----END PGP SIGNATURE-----
> _______________________________________________
> rspec-devel mailing list
> rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel
>


More information about the rspec-devel mailing list