<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 24, 2012 at 1:11 PM, Joe Gordon <span dir="ltr"><<a href="mailto:jogo@cloudscaling.com" target="_blank">jogo@cloudscaling.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><div><div>Hi All,</div>
</div><div><br></div><div>I would like to propose a minimum required code coverage level per file in Nova. Say 80%. This would mean that any new feature/file should only be accepted if it has over 80% code coverage. Exceptions to this rule would be allowed for code that is covered by skipped tests (as long as 80% is reached when the tests are not skipped).</div>
<div><br></div><div>With 193 python files in nova/tests, Nova unit tests produce 85% overall code coverage (calculated with ./run_test.sh -c [1]). But 23% of files (125 files) have lower then 80% code coverage (30 tests skipped on my machine). Getting all files to hit the 80% code coverage mark should be one of the goals for Folsom.</div>
<div><br></div></span></blockquote><div><br></div><div>Thanks for driving this Joe. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><div>
</div><div>Some files with low coverage:</div><div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 16px/normal Georgia"><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 16px/normal Georgia">
</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 16px/normal Georgia">nova/network/quantum/client 36%</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 16px/normal Georgia">
</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 16px/normal Georgia">nova/network/quantum/melange_connection 38%</p></div></span></blockquote><div><br></div><div>
These two files will be removed in Folsom, as Nova will use the proper Quantum client lib, instead of having its own copy. Melange client functionality will be folded into Quantum client. </div><div><br></div><div>Dan</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><div>
<p></p><p></p><p></p><p></p><p></p><p></p></div><div><br></div><div>best,</div><div>Joe Gordon</div>
<div><br></div><div><br></div><div><br></div>[1] With <a href="https://review.openstack.org/#/c/6750/" style="color:rgb(17,85,204)" target="_blank">https://review.openstack.org/#/c/6750/</a></span>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Dan Wendlandt <div>Nicira, Inc: <a href="http://www.nicira.com" target="_blank">www.nicira.com</a><br><div>twitter: danwendlandt<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~<br></div></div><br>
</div>