ClojureScript support for Kaocha
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
repl
src/kaocha
test
.dir-locals.el
.gitignore
CHANGELOG.md
LICENSE.txt
README.md
deps.edn
pom.xml Add CHANGELOG placeholders + update versions in pom.xml Dec 31, 2018
tests.edn

README.md

kaocha-cljs

CircleCI cljdoc badge Clojars Project codecov

ClojureScript support for Kaocha.

Quickstart

  • Add kaocha-cljs as a dependency
;; deps.edn
{:deps {lambdaisland/kaocha {...}
        lambdaisland/kaocha-cljs {...}}}

Note that you must be using at least Clojure 1.10.

  • Configure a ClojureScript test suite
;; tests.edn
#kaocha/v1
{:tests [{:id :unit-cljs
          :type :kaocha.type/cljs
          ;; :test-paths ["test"]
          ;; :cljs/timeout 10000                        ; 10 seconds, the default
          ;; :cljs/repl-env cljs.repl.node/repl-env     ; node is the default
          ;; :cljs/repl-env cljs.repl.browser/repl-env
          }]}

For nodejs, install ws and isomorphic-ws

npm i isomorphic-ws ws

Run your tests

clojure -m kaocha.runner unit-cljs

License

Copyright © 2018 Arne Brasseur

Available under the terms of the Eclipse Public License 1.0, see LICENSE.txt