Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.11 KB

README.md

File metadata and controls

52 lines (37 loc) · 1.11 KB

boot-cljs-test/node-runner

DEPRECATED in favor of testem-runner: https://github.com/boot-cljs-test/testem-runner

[boot-cljs-test/node-runner "0.1.0"]

Boot task that automatically generate a ClojureScript test runner script that works on Nodejs.

Usage

Add boot-cljs-test/node-runner to your build.boot dependencies and require the namespace:

(set-env! :dependencies '[[boot-cljs-test/node-runner "X.Y.Z" :scope "test"]])
(require '[boot-cljs-test/node-runner :refer :all])

You can see the options available on the command line:

$ boot cljs-test-node-runner -h

or in the REPL:

boot.user=> (doc cljs-test-node-runner)

Setup

(deftask cljs-auto-test []
  (comp (watch)
        (speak)
        (cljs-test-node-runner :namespaces '[foo.core-test bar.util-test]) ;; put it before `cljs` task
        (cljs :source-map true
              :optimizations :none)
        (run-cljs-test) ;; put it after `cljs` task
))

License

Copyright © 2015 Hoang Minh Thang

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.