Boot task to run ClojureScript tests.
[crisptrutski/boot-cljs-test "0.2.2"] ;; latest release
'[crisptrutski.boot-cljs-test :refer [test-cljs]]
to build.boot
.(task-options! test-cljs {:js-env :phantom})
, substituting test runner of your choice.(set-env! :source-paths #(conj % "test"))
) and run test-cljs
.This library provides two lower level tasks, prep-cljs-tests
and run-cljs-tests
, which are designed to run before and after Clojurescript compilation (eg. by cljs
task in boot-cljs
).
The test-cljs
task merely composes those tasks with the cljs
task, with sensible defaults. That includes ignoring any *.cljs.edn
files in your fileset,
to ensure tests and generated suite file are included in the compile.
Examples of workflows achievable by composing these smaller tasks manually:
.cljs.edn
filecljs
passCan you improve this documentation? These fine people already did:
Chris Truter & Martin KlepschEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close