split test/runner to make project more jack-in friendly
This commit is contained in:
parent
e66e7dc6d5
commit
3910df215a
2 changed files with 5 additions and 4 deletions
|
|
@ -55,7 +55,7 @@
|
|||
[:cljs] -- test against ClojureScript"
|
||||
[{:keys [aliases] :as opts}]
|
||||
(gen-doc-tests opts)
|
||||
(run-task (-> [:test :test-doc]
|
||||
(run-task (-> [:test :runner :test-doc]
|
||||
(into aliases)
|
||||
(into (if (some #{:cljs} aliases)
|
||||
[:test-doc-cljs]
|
||||
|
|
@ -63,7 +63,7 @@
|
|||
opts)
|
||||
|
||||
(defn test "Run basic tests." [opts]
|
||||
(run-task [:test :1.11])
|
||||
(run-task [:test :runner :1.11])
|
||||
opts)
|
||||
|
||||
(defn- jar-opts [opts]
|
||||
|
|
@ -92,7 +92,7 @@
|
|||
(run-doc-tests {:aliases [alias]}))
|
||||
(eastwood opts)
|
||||
(doseq [alias aliases]
|
||||
(run-task [:test alias]))
|
||||
(run-task [:test :runner alias]))
|
||||
(b/delete {:path "target"})
|
||||
(println "\nWriting pom.xml...")
|
||||
(b/write-pom opts)
|
||||
|
|
|
|||
3
deps.edn
3
deps.edn
|
|
@ -23,8 +23,9 @@
|
|||
:extra-deps {io.github.cognitect-labs/test-runner
|
||||
{:git/tag "v0.5.1" :git/sha "dfb30dd"}
|
||||
org.clojure/core.cache {:mvn/version "RELEASE"}}
|
||||
:main-opts ["-m" "cognitect.test-runner"]
|
||||
:exec-fn cognitect.test-runner.api/test}
|
||||
:runner
|
||||
{:main-opts ["-m" "cognitect.test-runner"]}
|
||||
|
||||
;; various "runners" for tests/CI:
|
||||
:cljs {:extra-deps {olical/cljs-test-runner {:mvn/version "3.8.0"}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue