example.tests.midje
Generate midje facts from examples.
gen-fact
(gen-fact e)
Generate a fact from the given example.
gen-facts
(gen-facts ns & {:keys [test-dir file-append import require use private-fns], :or {test-dir "test", file-append "-test"}, :as kw-args})
Generate facts from the examples from the given namespace.
gen-facts-file
(gen-facts-file ns & {:keys [test-dir file-append import require use private-fns], :or {test-dir "test", file-append "-test"}, :as kw-args})
Generate a test file with examples converted into midje facts.
File is created in the test directory by default with
-test appended to the original file name. Both of these settings can
be overridden.
gen-unit
(gen-unit ns & {:as kw-args})
Same as gen-facts but sets test-dir to test/unit
and does not append -test to file.
gen-unit-file
(gen-unit-file ns & {:as kw-args})
Same as gen-facts-file but sets test-dir to test/unit
and does not append -test to file.
mk-testable-privates
(mk-testable-privates ns private-fns)