Ask Your Question
1

howto get Sage doctest coverage statistics

asked 2014-05-12 05:56:26 +0100

jack77 gravatar image

updated 2014-05-13 06:06:36 +0100

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-12 06:13:33 +0100

tmonteil gravatar image

updated 2014-05-12 06:17:33 +0100

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-12 06:22:34 +0100 )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 10:45:22 +0100 )edit

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

jack77 gravatar imagejack77 ( 2014-05-12 13:50:00 +0100 )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-12 05:56:26 +0100

Seen: 826 times

Last updated: May 13 '14