Liking cljdoc? Tell your friends :D

kaocha.plugin.scenari-dry-run

--dry-run: checks that every step of the selected scenarios has a glue, without running anything.

The glue is resolved at parse time (scenari.v2.core/pickle-step->map sets :glue nil when nothing matches), so everything is already in the test-plan: walking it is enough. Without this an undefined step only blows up when run, on an (apply nil ...), after the previous steps and their side effects.

Non-zero exit when a glue is missing, with the skeleton to paste for each. Like scenari-doc, list it after :kaocha.plugin/scenari-tags to check only what would have run - the walk is scenari-doc's, both plugins read the same filtered tree. It cannot be combined with --doc-html / --doc-report.

`--dry-run`: checks that every step of the selected scenarios has a glue,
without running anything.

The glue is resolved at parse time (`scenari.v2.core/pickle-step->map` sets
`:glue nil` when nothing matches), so everything is already in the test-plan:
walking it is enough. Without this an undefined step only blows up when run,
on an `(apply nil ...)`, *after* the previous steps and their side effects.

Non-zero exit when a glue is missing, with the skeleton to paste for each.
Like `scenari-doc`, list it after `:kaocha.plugin/scenari-tags` to check only
what would have run - the walk is scenari-doc's, both plugins read the same
filtered tree. It cannot be combined with `--doc-html` / `--doc-report`.
raw docstring

reportclj

(report missing)

The missing steps grouped by scenario. The skeleton to paste is already printed by find-glue-by-step-regex at parse time (:missing-step event) - what that lacks is where the step is used.

The missing steps grouped by scenario. The skeleton to paste is already
printed by `find-glue-by-step-regex` at parse time (`:missing-step` event) -
what that lacks is *where* the step is used.
sourceraw docstring

scenari-dry-run-cli-options-hookclj

(scenari-dry-run-cli-options-hook opts)
source

scenari-dry-run-config-hookclj

(scenari-dry-run-config-hook config)
source

scenari-dry-run-hooksclj

source

scenari-dry-run-post-load-hookclj

(scenari-dry-run-post-load-hook test-plan)
source

scenari-dry-run-pre-load-hookclj

(scenari-dry-run-pre-load-hook config)
source

undefined-stepsclj

(undefined-steps test-plan)

[feature scenario step] for every step without a glue, in tree order.

`[feature scenario step]` for every step without a glue, in tree order.
sourceraw docstring

unused-gluesclj

(unused-glues steps)

The other way round: the step definitions none of steps uses. Indicative only - a filter (--tags, --focus) shrinks the selection, so grows the list, and all-glues also sees the glues of the loaded test namespaces.

The other way round: the step definitions none of `steps` uses. Indicative
only - a filter (`--tags`, `--focus`) shrinks the selection, so grows the list,
and `all-glues` also sees the glues of the loaded test namespaces.
sourceraw docstring

unused-reportclj

(unused-report glues)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close