On 18/06/07, <b class="gmail_sendername">aslak hellesoy</b> <<a href="mailto:aslak.hellesoy@gmail.com">aslak.hellesoy@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 6/18/07, Ian Leitch <<a href="mailto:port001@gmail.com">port001@gmail.com</a>> wrote:<br>> Hey list,<br>><br>> Does anything exist that can show me which lines are explicitly tested? RCov<br>> is great, but it doesn't really give a sense of _actual_ coverage, indeed,
<br>> there is no guarantee that functions executed were in fact called as the<br>> result of a line being tested.<br>><br><br>Why do you care whether a line was executed directly (spec->code) or<br>indirectly (spec->code->code->code)?
</blockquote><div><br><br>Just because a spec executed a function coincidentally and it generates some kind of error (most likely semantic), there is no guarantee that the code that made the call will also trip up. Therefore, rcov doesn't really tell me to what extent my code base is explicitly tested.
<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> I know nothing of the rspec internals, but would a simple list of executed
<br>> lines be a relatively simple feature to add?<br>><br><br>That would be hard I think. Feel free to investigate it. I would<br>rather recommend you use RSpec's --heckle switch if you want to know<br>how good your examples are. Coverage is overrated.
<br><br>See <a href="http://seattlerb.rubyforge.org/heckle/">http://seattlerb.rubyforge.org/heckle/</a> for more info.</blockquote><div><br>Thanks, I'll give Heckle a look.<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Aslak<br><br>> Cheers<br>> Ian<br>><br>> _______________________________________________<br>> rspec-users mailing list<br>> <a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br>>
<a href="http://rubyforge.org/mailman/listinfo/rspec-users">http://rubyforge.org/mailman/listinfo/rspec-users</a><br>><br>_______________________________________________<br>rspec-users mailing list<br><a href="mailto:rspec-users@rubyforge.org">
rspec-users@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/rspec-users">http://rubyforge.org/mailman/listinfo/rspec-users</a><br></blockquote></div><br>