To use this extension:
- Check out these sources and symlink
KaochaUnitTestEngine.php
intoarcanist/src/extensions/
- Modify your
project.clj
to contain:
:profiles {:test {:dependencies [[lambdaisland/kaocha "0.0-413"]
[lambdaisland/kaocha-junit-xml "0.0-70"]]}}
:aliases {"kaocha" ["with-profile" "+test" "run" "-m" "kaocha.runner"]}
- Create a file
tests.edn
with following content:
#kaocha/v1
{:plugins [:kaocha.plugin/profiling
:kaocha.plugin/capture-output
:kaocha.plugin/junit-xml]
:kaocha.plugin.junit-xml/target-file "target/test/junit.xml"}
- Name your test namespaces
...-test
(which also happens to be the convention for Kaocha)