BREAKING CHANGES as of 3.1. The =throws⇒
clause now just takes either a type
or a regex. Not maps/lists.
BREAKING CHANGES as of 3.0. Do NOT upgrade without being prepared to port your
test runners.
|
This library no longer contains browser-based runners.
|
I recommend the following alternatives:
- Clojure Tests
-
I recommend IntelliJ/Emacs/Vim in-editor testing, or perhaps
Clojure Tools Deps with kaocha. The latter renders into a terminal, but can use fulcro-spec’s
macros. Here is a sample config file that will use Fulcro spec’s terminal reporting:
#kaocha/v1
{:tests [{:id :unit
:ns-patterns ["-test$" "-spec$"]
:test-paths ["src/test"]
:skip-meta [:integration]
:source-paths ["src/main"]}]
:reporter [fulcro-spec.reporters.terminal/fulcro-report]
:plugins [:kaocha.plugin/randomize
:kaocha.plugin/filter
:kaocha.plugin/capture-output]}
- Clojurescript Tests
-
I highly recommend using Nubank’s Workspaces. I’ve contributed a
shadow-cljs target that can auto-scan for tests if you use their deftest macro. Again, things
like the provided
macro work within Workspaces. I recommend using shadow-cljs
:karma
target for running CI tests.