Which files and namespaces belong to a suite: test paths and
:ns-patterns, as Kaocha's kaocha.load decides. Kept apart from
volley.discover, which parses files, so that planning from namespace
infos already at hand does not load the parser.
Which files and namespaces belong to a suite: test paths and `:ns-patterns`, as Kaocha's `kaocha.load` decides. Kept apart from `volley.discover`, which parses files, so that planning from namespace infos already at hand does not load the parser.
(mark-tests suites infos)Set :test? on each info: true when it is a member of any suite in
suites (see suite-member?).
Set `:test?` on each info: true when it is a member of any suite in `suites` (see `suite-member?`).
(ns-match? suite ns-sym)Mirrors kaocha.load/ns-match?: any of the suite's :ns-patterns regexes
is found (re-find) in the namespace name.
Mirrors `kaocha.load/ns-match?`: any of the suite's `:ns-patterns` regexes is found (`re-find`) in the namespace name.
(suite-member? suite {:keys [file ns error]})True when info belongs to the suite's test namespaces: its file is under
a test path and its namespace matches an ns-pattern. Like Kaocha, a file
whose ns form cannot be read counts as a member, so the failure is
reported rather than hidden. Files without an ns form never do.
True when `info` belongs to the suite's test namespaces: its file is under a test path and its namespace matches an ns-pattern. Like Kaocha, a file whose ns form cannot be read counts as a member, so the failure is reported rather than hidden. Files without an ns form never do.
(test-file? suite path)True when path is a Clojure source file (.clj or .cljc) under one of the
suite's test paths. suite is a normalized config suite.
True when `path` is a Clojure source file (.clj or .cljc) under one of the suite's test paths. `suite` is a normalized config suite.
(under-path? dir file)True when file is inside directory dir (both relative paths).
True when `file` is inside directory `dir` (both relative paths).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |