Skip to content

Commit 9624fed

Browse files
committed
Remove test dir from gitignore
1 parent e653eb3 commit 9624fed

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ package.json
1616
yarn.lock
1717
.shadow-cljs
1818
resources/public/ui
19-
test
2019
resources/public/
2120
.store
2221
package-lock.json

bb.edn

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
{:paths ["src" "test"]
2-
:deps
1+
{:deps
32
{lambdaisland/open-source {:git/url "https://github.com/lambdaisland/open-source"
43
:git/sha "f2133b2a88bff3898e027c9b50516161c237792e"}}
54
:tasks
65
{test:bb {:doc "Run babashka tests with custom runner"
7-
;; :extra-paths ["src" "test"]
6+
:extra-paths ["src" "test"]
87
:extra-deps {current/project {:local/root "."}
98
org.clojure/test.check {:mvn/version "1.1.1"}}
10-
:task (do
11-
(prn (babashka.classpath/get-classpath))
12-
(exec 'lambdaisland.deep-diff2.runner/run-tests))}}}
9+
:task (exec 'lambdaisland.deep-diff2.runner/run-tests)}}}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
(ns lambdaisland.deep-diff2.runner
2+
"Test runner for babashka, until kaocha works with bb :)"
3+
(:require [clojure.test :as t]))
4+
5+
(defn run-tests [_]
6+
(let [test-nss '[lambdaisland.deep-diff2.diff-test
7+
#_lambdaisland.deep-diff2.printer-test
8+
lambdaisland.deep-diff2.puget-test]]
9+
(doseq [test-ns test-nss]
10+
(require test-ns))
11+
(let [{:keys [fail error]}
12+
(apply t/run-tests test-nss)]
13+
(when (and fail error (pos? (+ fail error)))
14+
(throw (ex-info "Tests failed" {:babashka/exit 1}))))))

0 commit comments

Comments
 (0)