(def-dd-test name args & body)
Defines a data-driven test based on clojure.test/deftest. Note that this macro is more of a starting point solving my immediate needs than a good idea.
Example: (def-dd-test gittest [ddval [git svn]] (is (= (analysis ddval) expected-output)))
The code above will generate two deftest, one for each supplied value. The generated code in each deftest will evaluate the body (is (= ...)) with the symbol ddval bound to 'git' for the first deftest and 'svn' for the second deftest.
Defines a data-driven test based on clojure.test/deftest. Note that this macro is more of a starting point solving my immediate needs than a good idea. Example: (def-dd-test gittest [ddval [git svn]] (is (= (analysis ddval) expected-output))) The code above will generate two deftest, one for each supplied value. The generated code in each deftest will evaluate the body (is (= ...)) with the symbol ddval bound to 'git' for the first deftest and 'svn' for the second deftest.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close