How to display code coverage after guard rspec call?

87 views
Skip to first unread message

Andrew Havens

unread,
Apr 8, 2013, 2:50:53 PM4/8/13
to guar...@googlegroups.com
I run my specs with guard and spork. I would like to see is a code coverage percentage in the console after running an individual spec. Is anyone else doing something like this? Can anyone advise me on how to configure this properly?

Thanks!

--Andrew

Thibaud Guillaume-Gentil

unread,
Apr 9, 2013, 5:08:57 AM4/9/13
to guar...@googlegroups.com
Hi Andrew, you could maybe try with a custom rspec formatter that display coverage percentage:

https://www.relishapp.com/rspec/rspec-core/v/2-13/docs/formatters/custom-formatters!

by overwriting the guard-rspec one:

https://github.com/guard/guard-rspec/blob/master/lib/guard/rspec/formatter.rb

Let us know if it works.
Thibaud
> --
> You received this message because you are subscribed to the Google Groups "guard-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to guard-dev+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Reply all
Reply to author
Forward
0 new messages