Terminal reporter configuration. You may swap against this atom to set configuration parameters to modify how reports are generated.
Options (defaults are shown) are:
{:fail-only? false ; do not show passing tests
:color? true ; highlight things using terminal colors
:diff-hl? false ; print the (unexpected) actual
:diff? true ; Show a diff?
:diff-list? false ; print a list of all of the data diffs
:num-diffs 1 ; max number of diffs if using diff-list?
:full-diff? true ; always show full expected and actual?
:frame-limit 100 ; Max stack frames on an exception
:quick-fail? true ; stop on the first failure
;; Affects output of original assertions
:*print-level* 3 ; See clojure *print-level*.
:*print-length* 3} ; See clojure *print-length*
Typically you'd do something like this to change an option:
(swap! fulcro-spec.reporters.terminal/cfg assoc :color? false)
Terminal reporter configuration. You may swap against this atom to set configuration parameters to modify how reports are generated. Options (defaults are shown) are: ``` {:fail-only? false ; do not show passing tests :color? true ; highlight things using terminal colors :diff-hl? false ; print the (unexpected) actual :diff? true ; Show a diff? :diff-list? false ; print a list of all of the data diffs :num-diffs 1 ; max number of diffs if using diff-list? :full-diff? true ; always show full expected and actual? :frame-limit 100 ; Max stack frames on an exception :quick-fail? true ; stop on the first failure ;; Affects output of original assertions :*print-level* 3 ; See clojure *print-level*. :*print-length* 3} ; See clojure *print-length* ``` Typically you'd do something like this to change an option: ``` (swap! fulcro-spec.reporters.terminal/cfg assoc :color? false) ```
(merge-cfg!)
(merge-cfg! new-cfg)
For use in the test-refresh repl to change configuration on the fly. Single arity will show you the possible keys you can use. Passing an empty map will show you the current values.
For use in the test-refresh repl to change configuration on the fly. Single arity will show you the possible keys you can use. Passing an empty map will show you the current values.
(print-reporter reporter)
Prints the current report data from the report data state and applies colors based on test results
Prints the current report data from the report data state and applies colors based on test results
(print-test-result {:keys [where status extra throwable diff]
:fulcro-spec.assertions/keys [actual]
:as test-result}
print-fn
print-level)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close