Logging tool provides you a transparent testing environment. It records your testing code, its actual modified error message and its original error message.
[hiccup "1.0.5"]
into your project.clj
dependencies. Hiccup is required and used for auto-generating html file.(:use [loggings.loggingtool :only [get-error start-log add-log]])
in each of your testing file's namespace.(start-log true)
in the first testing file as the very first function.(start-log *boolean*)
.(expect nil (add-log (do (def file-name "this file") (:file (meta #'file-name)))))
at the beginning of each testing file to get the tested file names.(get-error *testing-expr*)
will generate the log.This is how the test log looks like:
You are able to filter out the nil result:
You are also able to see the testing details that are retrieved from our middleware:
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close