-
Notifications
You must be signed in to change notification settings - Fork 215
/
bb.edn
37 lines (34 loc) · 2.12 KB
/
bb.edn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{:deps {metosin/malli {:local/root "."}}
:tasks
{test-clj {:doc "Run JVM Clojure tests with kaocha"
:task (apply clojure {:extra-env {"TEST_SCI" "true"}}
(str "-A:" (System/getenv "CLOJURE"))
"-M:test" "-m" "kaocha.runner" *command-line-args*)}
test-cljs {:doc "Run ClojureScript tests"
:task (do
(println "Running CLJS tests without optimizations")
(apply clojure {:extra-env {"TEST_SCI" "true"}}
"-M:test:cljs-test-runner:test-sci" "-c" "{:optimizations :none}"
*command-line-args*)
(println "Running CLJS tests with optimizations")
(apply clojure {:extra-env {"TEST_SCI" "true"}}
"-M:test:cljs-test-runner:test-sci" "-c" "{:optimizations :advanced}"
"-e" ":simple"
*command-line-args*))}
test-cherry {:doc "Run CLJS tests with cherry"
:task (do (println "Running CLJS tests with cherry, without optimizations")
(apply clojure "-M:test:cljs-test-runner:cherry:test-cherry" "-c"
(str {:optimizations :none})
*command-line-args*)
(println "Running CLJS tests with cherry, with optimizations")
(apply clojure "-M:test:cljs-test-runner:cherry:test-cherry" "-c"
(str {:optimizations :advanced,
;; see https://clojure.atlassian.net/browse/CLJS-3401
:optimize-constants false})
"-e" ":simple"
*command-line-args*))}
test-bb {:doc "Run Babashka tests"
:extra-deps {org.babashka/spec.alpha {:git/url "https://github.com/babashka/spec.alpha"
:git/sha "b6eb0f2208ab036c0a5d0e7235cb0b09d2feabb7"}}
:extra-paths ["src" "test"]
:task bb-test-runner/run-tests}}}