<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 7/2/14 6:10 PM, Drew Michel wrote:<br>
<blockquote
cite="mid:CAEHJSqhwGGp0sdbq1jJP6TJHoPYNN3MeKP4GuMmUoB6amSWAqg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I'm just starting to write unit tests for my project and
I'm very excited.</div>
<div><br>
</div>
<div>When I use vanilla nose with --cover-inclusive I'm able to
see the parts of my code I haven't written unit tests for,
i.e. <a moz-do-not-send="true"
href="http://pastebin.com/KSqje8qN">http://pastebin.com/KSqje8qN</a></div>
<div><br>
</div>
<div>When I use coverage + tox, I'm unable to find a combination
that works together. Is there anyway to get this behavior? <br>
</div>
<div><br>
</div>
<div>Here is my config <a moz-do-not-send="true"
href="http://pastebin.com/9zVahiJE">http://pastebin.com/9zVahiJE</a></div>
<div><br>
</div>
</div>
</blockquote>
<br>
Looks like you are already using coverage to run the tests, which is
good. In this case, you don't need to use the nose --with-coverage
flags at all. You want the coverage.py --source flag, which tells
coverage where the root of your source tree is, and lets it find
files that are completely uncovered.<br>
<br>
--Ned.<br>
<blockquote
cite="mid:CAEHJSqhwGGp0sdbq1jJP6TJHoPYNN3MeKP4GuMmUoB6amSWAqg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div><br>
Thank you,</div>
<div><br>
</div>
<div>Drew</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
testing-in-python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a>
<a class="moz-txt-link-freetext" href="http://lists.idyll.org/listinfo/testing-in-python">http://lists.idyll.org/listinfo/testing-in-python</a>
</pre>
</blockquote>
<br>
</body>
</html>