-
Notifications
You must be signed in to change notification settings - Fork 230
Expand file tree
/
Copy pathbb.edn
More file actions
44 lines (40 loc) · 2.47 KB
/
bb.edn
File metadata and controls
44 lines (40 loc) · 2.47 KB
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
38
39
40
41
42
43
44
{: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}
test-docs {:doc "Run README.md based tests"
:task (do
(println "Generating tests from README.md")
(clojure "-X:test-doc-blocks")
(println "Running tests")
(clojure "-M:test:test-doc-test" "-m" "kaocha.runner" "--config-file" "test-doc-tests.edn" "generated"))}}}