Ask Your Question
1

howto get Sage doctest coverage statistics

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

jack77 gravatar image

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

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

Thanks,

Jack

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

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

tmonteil gravatar image

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

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

Comments

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 -0600 )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 -0600 )edit

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

jack77 gravatar imagejack77 ( 2014-05-12 06:50:00 -0600 )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

Stats

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

Seen: 156 times

Last updated: May 12 '14