ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 12 May 2014 13:50:00 +0200howto get Sage doctest coverage statisticshttps://ask.sagemath.org/question/7568/howto-get-sage-doctest-coverage-statistics/How can a user get/see recent Sage doctest coverage statistics?
>
Thanks,
JackMon, 12 May 2014 05:56:26 +0200https://ask.sagemath.org/question/7568/howto-get-sage-doctest-coverage-statistics/Answer by tmonteil for <p>How can a user get/see recent Sage doctest coverage statistics?</p>
<blockquote>
<p></p>
</blockquote>
<p>Thanks,</p>
<p>Jack</p>
https://ask.sagemath.org/question/7568/howto-get-sage-doctest-coverage-statistics/?answer=16128#post-id-16128For a particular file:
sage --coverage <filename>
For all Sage library:
sage --coverageall
For Sage 6.2, the overall weighted coverage score is 93.7%.
The doc is [available here](http://www.sagemath.org/doc/reference/cmd/options.html).
Mon, 12 May 2014 06:13:33 +0200https://ask.sagemath.org/question/7568/howto-get-sage-doctest-coverage-statistics/?answer=16128#post-id-16128Comment by jack77 for <p>For a particular file:</p>
<pre><code>sage --coverage <filename>
</code></pre>
<p>For all Sage library:</p>
<pre><code>sage --coverageall
</code></pre>
<p>For Sage 6.2, the overall weighted coverage score is 93.7%.</p>
<p>The doc is <a href="http://www.sagemath.org/doc/reference/cmd/options.html">available here</a>.</p>
https://ask.sagemath.org/question/7568/howto-get-sage-doctest-coverage-statistics/?comment=16173#post-id-16173@tmonteil is it also possible to get the branch test coverage for Sage?Mon, 12 May 2014 13:50:00 +0200https://ask.sagemath.org/question/7568/howto-get-sage-doctest-coverage-statistics/?comment=16173#post-id-16173Comment by jack77 for <p>For a particular file:</p>
<pre><code>sage --coverage <filename>
</code></pre>
<p>For all Sage library:</p>
<pre><code>sage --coverageall
</code></pre>
<p>For Sage 6.2, the overall weighted coverage score is 93.7%.</p>
<p>The doc is <a href="http://www.sagemath.org/doc/reference/cmd/options.html">available here</a>.</p>
https://ask.sagemath.org/question/7568/howto-get-sage-doctest-coverage-statistics/?comment=16175#post-id-16175What do you think, is the number misleading? Sage uses external libraries, but their test code coverage is not recognized, if available at all.Mon, 12 May 2014 06:22:34 +0200https://ask.sagemath.org/question/7568/howto-get-sage-doctest-coverage-statistics/?comment=16175#post-id-16175Comment by kcrisman for <p>For a particular file:</p>
<pre><code>sage --coverage <filename>
</code></pre>
<p>For all Sage library:</p>
<pre><code>sage --coverageall
</code></pre>
<p>For Sage 6.2, the overall weighted coverage score is 93.7%.</p>
<p>The doc is <a href="http://www.sagemath.org/doc/reference/cmd/options.html">available here</a>.</p>
https://ask.sagemath.org/question/7568/howto-get-sage-doctest-coverage-statistics/?comment=16174#post-id-16174Good point, but we don't have the ability to really change that issue, nor do I think it would be at all easy to actually test for it. So this is purely about non-underscore functions in the core Sage library, you are right.Mon, 12 May 2014 10:45:22 +0200https://ask.sagemath.org/question/7568/howto-get-sage-doctest-coverage-statistics/?comment=16174#post-id-16174