#kaocha reader literal for configuration. Before: :kaocha.filter/focus, after: :focus.:kaocha.hooks/pre-load hook to complement :kaocha.hooks/post-load.:kaocha.type/suite is now called :kaocha.type/clojure.test--version command line flag (only works when running from a JAR)--help as alternative to --test-help, for environments where --help isn't shadowedkaocha.repl/run-tests / kaocha.repl/run-all-tests:kaocha.suite/ns-patterns, :kaocha.suite/source-paths and:kaocha.suite/test-paths have been renamed to just use the :kaocha
namespace.wrap-run, which allows you
to decorate run-testables for doing things like adding bindings.fail-fast is true, quit immediately when a load error is detected,
instead of only failing when the namespace runs.bin/kaocha :unit--[no-]profiling, --profiling-count,
:kaocha.plugin.profiling/profiling?, :kaocha.plugin.profiling/count--focus and --focus-meta override config-level :focus/:focus-meta,
rather than append. This is more intuitive, when focusing from the command
line you don't want extra tests to show up.post-summary hook when using the API, this prevents noise from
plugins in the --print-test-plan / --print-result output.:kaocha.var/wrap key, which can contain a seq
of functions that will be used to "wrap" the actual test function, useful e.g.
for providing bindings. clojure.test style :each fixtures are also handled
through this key, so plugins can choose to add wrapping functions at the start
or the end of this seq to wrap "inside" or "around" the fixtures.pre-test and post-test plugin hooks, so
that they have access to top level configuration items.kaocha.plugin/defplugin macro, making plugins look more like a
deftype.#kaocha {} tagged reader literal in tests.edn to provide defaults. If you want more
control then overwrite tests.edn with the output of --print-config and
tweak.Can you improve this documentation?Edit on GitHub
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 |