Skip to content

Commit a4fa364

Browse files
committed
Add test:clj task
1 parent 2b49481 commit a4fa364

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

bb.edn

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@
22
{lambdaisland/open-source {:git/url "https://github.com/lambdaisland/open-source"
33
:git/sha "f2133b2a88bff3898e027c9b50516161c237792e"}}
44
:tasks
5-
{test:bb {:doc "Run babashka tests with custom runner"
5+
{:requires ([babashka.fs :as fs])
6+
test:bb {:doc "Run babashka tests with custom runner"
67
:extra-paths ["src" "test"]
78
:extra-deps {current/project {:local/root "."}
89
org.clojure/test.check {:mvn/version "1.1.1"}}
9-
:task (exec 'lambdaisland.deep-diff2.runner/run-tests)}}}
10+
:task (exec 'lambdaisland.deep-diff2.runner/run-tests)}
11+
npm-ws (when-not (fs/exists? "node_modules/ws")
12+
(shell "npm install ws"))
13+
test:clj {:doc "Run kaocha tests"
14+
:depends [npm-ws]
15+
:task (apply clojure "-M:dev:test -m kaocha.runner" *command-line-args*)}}}

0 commit comments

Comments
 (0)