Ask Your Question

howto get Sage doctest coverage statistics

asked 2014-05-11 22:56:26 -0500

jack77 gravatar image

updated 2014-05-12 23:06:36 -0500

How can a user get/see recent Sage doctest coverage statistics?



edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-05-11 23:13:33 -0500

tmonteil gravatar image

updated 2014-05-11 23:17:33 -0500

For 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.

edit flag offensive delete link more


What do you think, is the number misleading? Sage uses external libraries, but their test code coverage is not recognized, if available at all.

jack77 gravatar imagejack77 ( 2014-05-11 23:22:34 -0500 )edit

Good 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.

kcrisman gravatar imagekcrisman ( 2014-05-12 03:45:22 -0500 )edit

@tmonteil is it also possible to get the branch test coverage for Sage?

jack77 gravatar imagejack77 ( 2014-05-12 06:50:00 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2014-05-11 22:56:26 -0500

Seen: 152 times

Last updated: May 12 '14