Discussion:
[racket] Documentation coverage?
Jack Firth
2015-02-19 21:49:47 UTC
Permalink
I've been using the new Racket code coverage tool that integrates with
Coveralls (thank you Spencer Florence!) and I was wondering - would a
similar tool that reports how many exported bindings of a module have
Scribble documentation be a good idea? I'd find it very useful if the
package build server reported that information, especially if it also
offered a similar github badge that linked to the package's docs.
Sam Tobin-Hochstadt
2015-02-19 22:04:31 UTC
Permalink
Post by Jack Firth
I've been using the new Racket code coverage tool that integrates with
Coveralls (thank you Spencer Florence!) and I was wondering - would a
similar tool that reports how many exported bindings of a module have
Scribble documentation be a good idea? I'd find it very useful if the
package build server reported that information, especially if it also
offered a similar github badge that linked to the package's docs.
There's already a tool for this, written by Robby, which you can read
about here: http://docs.racket-lang.org/rackunit/Testing_Utilities.html

Packaging it up into something with a cool badge would be a nice
addition, though.

Sam
____________________
Racket Users list:
http://lists.racket-lang.org/users
Alexander D. Knauth
2015-02-19 22:04:50 UTC
Permalink
I've been using the new Racket code coverage tool that integrates with Coveralls (thank you Spencer Florence!) and I was wondering - would a similar tool that reports how many exported bindings of a module have Scribble documentation be a good idea?
Could this be what you’re looking for?

http://docs.racket-lang.org/rackunit/Testing_Utilities.html#%28part._.Checking_documentation_completeness%29

I’ve never used it though.
I'd find it very useful if the package build server reported that information, especially if it also offered a similar github badge that linked to the package's docs.
____________________
http://lists.racket-lang.org/users
____________________
Racket Users list:
http://lists.racket-lang.org/users
Jack Firth
2015-02-19 22:14:38 UTC
Permalink
Didn't know about that, very cool and certainly shows this is possible.
More information would be needed, since `check-docs` one only tells you if
everything's documented or not. I'd like something that returns a list of
all bindings with documentation and all bindings without, and some service
that packages that up into a nice report and github badge or some such.
Post by Jack Firth
Post by Jack Firth
I've been using the new Racket code coverage tool that integrates with
Coveralls (thank you Spencer Florence!) and I was wondering - would a
similar tool that reports how many exported bindings of a module have
Scribble documentation be a good idea?
Could this be what you’re looking for?
http://docs.racket-lang.org/rackunit/Testing_Utilities.html#%28part._.Checking_documentation_completeness%29
I’ve never used it though.
Post by Jack Firth
I'd find it very useful if the package build server reported that
information, especially if it also offered a similar github badge that
linked to the package's docs.
Post by Jack Firth
____________________
http://lists.racket-lang.org/users
Sam Tobin-Hochstadt
2015-02-19 22:23:35 UTC
Permalink
`check-docs` lists all the undocumented bindings; it should be pretty easy
to modify it to print the list of documented bindings too. You can see it
in action here:
http://drdr.racket-lang.org/29735/racket/share/pkgs/typed-racket-test/test-docs-complete.rkt
on the file here:
https://github.com/racket/typed-racket/blob/master/typed-racket-test/test-docs-complete.rkt

Sam
Post by Jack Firth
Didn't know about that, very cool and certainly shows this is possible.
More information would be needed, since `check-docs` one only tells you if
everything's documented or not. I'd like something that returns a list of
all bindings with documentation and all bindings without, and some service
that packages that up into a nice report and github badge or some such.
Post by Jack Firth
Post by Jack Firth
I've been using the new Racket code coverage tool that integrates with
Coveralls (thank you Spencer Florence!) and I was wondering - would a
similar tool that reports how many exported bindings of a module have
Scribble documentation be a good idea?
Could this be what you’re looking for?
http://docs.racket-lang.org/rackunit/Testing_Utilities.html#%28part._.Checking_documentation_completeness%29
I’ve never used it though.
Post by Jack Firth
I'd find it very useful if the package build server reported that
information, especially if it also offered a similar github badge that
linked to the package's docs.
Post by Jack Firth
____________________
http://lists.racket-lang.org/users
____________________
http://lists.racket-lang.org/users
Jack Firth
2015-02-19 22:50:27 UTC
Permalink
Perfect, thank you. I'll tinker with that and see where it goes.
Post by Sam Tobin-Hochstadt
`check-docs` lists all the undocumented bindings; it should be pretty easy
to modify it to print the list of documented bindings too. You can see it
http://drdr.racket-lang.org/29735/racket/share/pkgs/typed-racket-test/test-docs-complete.rkt
https://github.com/racket/typed-racket/blob/master/typed-racket-test/test-docs-complete.rkt
Sam
Post by Jack Firth
Didn't know about that, very cool and certainly shows this is possible.
More information would be needed, since `check-docs` one only tells you if
everything's documented or not. I'd like something that returns a list of
all bindings with documentation and all bindings without, and some service
that packages that up into a nice report and github badge or some such.
On Thu, Feb 19, 2015 at 2:04 PM, Alexander D. Knauth <
Post by Jack Firth
Post by Jack Firth
I've been using the new Racket code coverage tool that integrates with
Coveralls (thank you Spencer Florence!) and I was wondering - would a
similar tool that reports how many exported bindings of a module have
Scribble documentation be a good idea?
Could this be what you’re looking for?
http://docs.racket-lang.org/rackunit/Testing_Utilities.html#%28part._.Checking_documentation_completeness%29
I’ve never used it though.
Post by Jack Firth
I'd find it very useful if the package build server reported that
information, especially if it also offered a similar github badge that
linked to the package's docs.
Post by Jack Firth
____________________
http://lists.racket-lang.org/users
____________________
http://lists.racket-lang.org/users
Loading...