Turn a README file into a test namespace.
Turn a README file into a test namespace.
(-main & [readme readme-test])
A useful default test behavior that can be invoked from the command
line via -m seancorfield.readme
This turns README.md
(if it exists) into src/readme.clj
, then
requires it and runs its tests, and finally deletes src/readme.clj
.
Optional arguments for the readme file and the generated test can override the defaults.
A useful default test behavior that can be invoked from the command line via `-m seancorfield.readme` This turns `README.md` (if it exists) into `src/readme.clj`, then requires it and runs its tests, and finally deletes `src/readme.clj`. Optional arguments for the readme file and the generated test can override the defaults.
(defreadme name & body)
Wrapper for deftest that understands readme examples.
Wrapper for deftest that understands readme examples.
(readme->test readme readme-test)
Given the path to a README, generate a plain old clojure.test
file
at the specified path. If the test path exists, it will be overwritten.
Given the path to a README, generate a plain old `clojure.test` file at the specified path. If the test path exists, it will be overwritten.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close