Hey list,<br><br>RSpec is great, I&#39;ve been using it at work for a couple of months now. One gripe I have is that I find it hard to know exactly to what extent my code is covered by the specs. I am aware of RCov and Heckle; they&#39;re great, but I&#39;d like to demonstrate another perspective of coverage analysis I&#39;ve hacked up.
<br><br>The perspective is that of what is mocked and what isn&#39;t, with RCov execution analysis mixed in for better viewing. My itch was &quot;To what extent is my code mocked?&quot; -- hence the name MockCov.<br>It produces a report for each file with stubbed methods and executed lines highlighted. From that I can easily see what my specs failed to mock and therefore most probably didn&#39;t specify any kind of behavior for.
<br><br>Here is a sample report: <a href="http://zioko.com/review_drop.rb.html">http://zioko.com/review_drop.rb.html</a><br>(please forgive the small size of this sample, my employer understandably didn&#39;t want me showing too much of our code)
<br><br>You&#39;ll notice that there isn&#39;t any kind of statistical coverage summary, I&#39;m not sure how to quantity the results and indeed haven&#39;t spent any time thinking about it; that can come later. For now I&#39;d just like to gauge the response to this.
<br><br>I haven&#39;t packaged the code up yet, it&#39;s a horrible hack and needs to be reworked from scratch; I need to talk with someone on how best to integrate it with RSpec before that happens though.<br><br>Let me know your thoughts.
<br><br>Cheers<br>Ian