Liking cljdoc? Tell your friends :D

com.mjdowney.rich-comment-tests.test-runner

Find source files, run any tests with rct, and report with clojure.test.

Find source files, run any tests with rct, and report with clojure.test.
raw docstring

file-ending-with?clj

(file-ending-with? extension-set)

Build a predicate matching files that end with any of the strings in the given set of extensions.

Build a predicate matching files that end with any of the strings in the
given set of extensions.
sourceraw docstring

ns->filesclj

(ns->files dirs file-pred)

Take a series of dirs (e.g. ["src"]) and return a map of namespace symbol to series of source file paths.

Typically, there is a single source file per namespace, but the relationship is potentially 1 : many.

Take a series of `dirs` (e.g. `["src"]`) and return a map of
namespace symbol to series of source file paths.

Typically, there is a single source file per namespace, but the relationship
is potentially 1 : many.
sourceraw docstring

run-tests-in-file-tree!clj

(run-tests-in-file-tree! &
                         {:keys [dirs file-pred]
                          :or {file-pred (file-ending-with? #{".cljc"
                                                              ".clj"})}})

Find all files in the set of dirs matching file-pred and execute any RCT tests.

Find all files in the set of `dirs` matching `file-pred` and execute any
RCT tests.
sourceraw docstring

try-get-namespace-from-fileclj

(try-get-namespace-from-file file)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close