Namespace dependency graph for watch mode: which test namespaces are affected by a set of changed files.
Namespace dependency graph for watch mode: which test namespaces are affected by a set of changed files.
(affected {:keys [files rdeps tests]} changed-paths)The test namespaces affected by changes to changed-paths: each changed
file's namespace plus everything that transitively requires it, restricted
to test namespaces. A changed test namespace therefore affects itself.
A changed path the graph does not know (a resource, a config file, a new or deleted file) cannot be traced, so the answer is conservative: every test namespace is affected.
The test namespaces affected by changes to `changed-paths`: each changed file's namespace plus everything that transitively requires it, restricted to test namespaces. A changed test namespace therefore affects itself. A changed path the graph does not know (a resource, a config file, a new or deleted file) cannot be traced, so the answer is conservative: every test namespace is affected.
(graph ns-infos)Build the dependency graph from ns-infos (see volley.discover/ns-info,
with :test? set by volley.paths/mark-tests). Infos without a
namespace are ignored.
Returns {:files {path ns} ; file -> its namespace :deps {ns #{ns}} ; ns -> known namespaces it requires :rdeps {ns #{ns}} ; ns -> known namespaces requiring it :tests #{ns}} ; test namespaces
Only namespaces that appear in ns-infos become nodes; requires of
libraries are not edges. Cycles are fine.
Build the dependency graph from `ns-infos` (see `volley.discover/ns-info`,
with `:test?` set by `volley.paths/mark-tests`). Infos without a
namespace are ignored.
Returns
{:files {path ns} ; file -> its namespace
:deps {ns #{ns}} ; ns -> known namespaces it requires
:rdeps {ns #{ns}} ; ns -> known namespaces requiring it
:tests #{ns}} ; test namespaces
Only namespaces that appear in `ns-infos` become nodes; requires of
libraries are not edges. Cycles are fine.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 |