This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-04
Channels
- # announcements (9)
- # bangalore-clj (1)
- # beginners (164)
- # calva (7)
- # clj-kondo (12)
- # cljs-dev (5)
- # cljsrn (7)
- # clojure (100)
- # clojure-spec (5)
- # clojure-sweden (2)
- # clojure-uk (4)
- # clojurescript (9)
- # conjure (22)
- # datomic (53)
- # fulcro (62)
- # graalvm (27)
- # helix (10)
- # joker (6)
- # malli (1)
- # mount (4)
- # nrepl (3)
- # off-topic (8)
- # quil (1)
- # releases (1)
- # sci (42)
- # shadow-cljs (1)
- # testing (7)
- # tools-deps (26)
- # vim (24)
Just released testdoc ver 1.4.0, doctest implementation in Clojure.
https://github.com/liquidz/testdoc
Now supports to add error position(line number) information to error messages.
And also works on babashka!
I've seen this in Rust and always thought it was cool, nice to see Clojure has a similar project.
But why not to use test metadata? In that case you are not editing a string but normal clojure code
@U04V4KLKC Because this can test that examples you provide in docstrings are correct (as well as regular tests, via metadata).
For the same reason that seancorfield/readme
exists, to turn README files into tests, so you can verify that examples in your documentation are correct.
(although this testdoc
may be a better solution, even for README files, depending on how it deals with non-test code etc)
(and we should probably direct further discussion to #testing at this point!)