On 18/06/07, <b class="gmail_sendername">aslak hellesoy</b> &lt;<a href="mailto:aslak.hellesoy@gmail.com">aslak.hellesoy@gmail.com</a>&gt; 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 &lt;<a href="mailto:port001@gmail.com">port001@gmail.com</a>&gt; wrote:<br>&gt; Hey list,<br>&gt;<br>&gt; Does anything exist that can show me which lines are explicitly tested? RCov<br>&gt; is great, but it doesn&#39;t really give a sense of _actual_ coverage, indeed,
<br>&gt; there is no guarantee that functions executed were in fact called as the<br>&gt; result of a line being tested.<br>&gt;<br><br>Why do you care whether a line was executed directly (spec-&gt;code) or<br>indirectly (spec-&gt;code-&gt;code-&gt;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&#39;t really tell me to what extent my code base is explicitly tested.
<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt; I know nothing of the rspec internals, but would a simple list of executed
<br>&gt; lines be a relatively simple feature to add?<br>&gt;<br><br>That would be hard I think. Feel free to investigate it. I would<br>rather recommend you use RSpec&#39;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&#39;ll give Heckle a look.<br>&nbsp;</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>&gt; Cheers<br>&gt; Ian<br>&gt;<br>&gt; _______________________________________________<br>&gt; rspec-users mailing list<br>&gt; <a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br>&gt; 
<a href="http://rubyforge.org/mailman/listinfo/rspec-users">http://rubyforge.org/mailman/listinfo/rspec-users</a><br>&gt;<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>