File tree Expand file tree Collapse file tree 5 files changed +24
-24
lines changed Expand file tree Collapse file tree 5 files changed +24
-24
lines changed Original file line number Diff line number Diff line change 33 org.babashka/spec.alpha {:git/url " https://github.com/babashka/spec.alpha"
44 :git/sha " 951b49b8c173244e66443b8188e3ff928a0a71e7" }}
55 :tasks
6- {:requires ([docker-clojure.core :as dc])
6+ {:requires ([babashka.deps :as deps]
7+ [docker-clojure.core :as dc])
78 clean (dc/-main " clean" )
89 dockerfiles {:depends [clean]
910 :task (apply dc/-main " dockerfiles" *command-line-args*)}
1011 manifest (apply dc/-main " manifest" *command-line-args*)
1112 build-images {:task (apply dc/-main " build-images" *command-line-args*)}
12- test {:extra-paths [" test" ]
13- :requires ([docker-clojure.test-runner :as tr])
14- :task (tr/-main
15- 'docker-clojure.core-test
16- 'docker-clojure.docker-test
17- 'docker-clojure.dockerfile-test
18- 'docker-clojure.manifest-test
19- 'docker-clojure.variant-test)}}}
13+ test (deref (deps/clojure '-X:test))}}
Original file line number Diff line number Diff line change 1111 :parallelization 2 }}
1212
1313 :test {:extra-paths [" test" ]
14- :extra-deps {com.cognitect/test-runner
15- {:git/url " https://github.com/cognitect-labs/test-runner.git"
16- :sha " 9d36f36ff541dac680a05010e4348c744333f191" }}
17- :main-opts [" -m" " cognitect.test-runner" ]}}}
14+ :extra-deps {lambdaisland/kaocha {:mvn/version " 1.91.1392" }
15+ orchestra/orchestra {:mvn/version " 2021.01.01-1" }
16+ org.clojure/test.check {:mvn/version " 1.1.1" }}
17+ :exec-fn docker-clojure.fix-kaocha/run-tests
18+ :exec-args {}}}}
Original file line number Diff line number Diff line change 1+ (ns docker-clojure.fix-kaocha
2+ " Kaocha often has bugs with tools-deps exec-fn usage because they have two
3+ different entry points (and one doesn't use the other). They insist on
4+ everyone using a `bin/kaocha` script to run their tests even though that is
5+ inconsistent with most Clojure tooling idioms. This ns exists to work around
6+ bugs we encounter and make kaocha behave better."
7+ (:require [clojure.spec.alpha :as spec]
8+ [expound.alpha :as expound]
9+ [kaocha.runner :as kaocha]))
10+
11+ (defn run-tests
12+ [opts]
13+ ; ; work around https://github.com/lambdaisland/kaocha/issues/445
14+ (binding [spec/*explain-out* expound/printer]
15+ (kaocha/exec-fn opts)))
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #kaocha/v1 {:plugins [:kaocha.plugin.alpha/spec-test-check ]}
You can’t perform that action at this time.
0 commit comments