-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathbb.edn
More file actions
15 lines (15 loc) · 690 Bytes
/
bb.edn
File metadata and controls
15 lines (15 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{:deps {philoskim/debux {:local/root "."}}
:tasks
{test:bb
{:doc "Run babashka tests"
:extra-deps {eftest/eftest {:mvn/version "0.6.0"}}
:extra-paths ["test"]
:requires ([eftest.runner :refer [find-tests run-tests]])
:task (let [{:keys [fail error]} (run-tests
(find-tests "test")
(when-not (System/console)
;; better output in github actions
{:report clojure.test/report}))]
(when (or (pos? fail)
(pos? error))
(throw (ex-info "Tests failed" {:babashka/exit 1}))))}}}