First time here? Check out the FAQ!

Ask Your Question
1

howto get Sage doctest coverage statistics

asked 10 years ago

jack77 gravatar image

updated 10 years ago

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

Thanks,

Jack

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 10 years ago

tmonteil gravatar image

updated 10 years ago

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.

Preview: (hide)
link

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 ( 10 years ago )

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 ( 10 years ago )

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

jack77 gravatar imagejack77 ( 10 years ago )

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: 10 years ago

Seen: 841 times

Last updated: May 13 '14