Hi all,<div><br></div><div>I have released a new version of Pygora, a small command line tool that reports the ratio of your source vs your test code.</div><div><br></div><div>Reports look like this:</div><div><br></div><div>
<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
Test lines   <span class="Apple-tab-span" style="white-space:pre">        </span>=      92627</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
Source lines <span class="Apple-tab-span" style="white-space:pre">        </span>=     411414</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
Total lines <span class="Apple-tab-span" style="white-space:pre">        </span>=     504041</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<br></blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
Your test code is 22.51% of your source code</blockquote></div><div><br></div><div><br></div><div>A few improvements over the last version, but most importantly, it is now twice as fast.</div><div><br></div><div>In a directory with +50,000 lines of code, pygora was able to report this under a second consistently. Granted, it depends on the</div>
<div>type of hard drive/machine you may have but this is really fast regardless.</div><div><br></div><div>Previous versions of pygora would take the current working directory, but now you can supply a path (no idea why I didn&#39;t had this before)</div>
<div><br></div><div>To install it, just do:</div><div><br></div><div>pip install pygora</div><div><br></div><div>Documentation (although this is quite simple) can be found at <a href="http://code.google.com/p/pygora">http://code.google.com/p/pygora</a></div>
<div><br></div><div>And finally, yes, pygora is a type of goat (see: <a href="http://www.pygoragoats.org/">http://www.pygoragoats.org/</a>).</div><div><br></div><div>Thanks!</div><div><br></div><div>Alfredo</div>