From eac5e933c395f9c20b26e8bc541c2658ae35ab03 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Tue, 17 Aug 2021 22:39:07 -0700 Subject: [PATCH] Fix runner/build/gitpod REPL --- build.clj | 4 +++- deps.edn | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build.clj b/build.clj index f36118f..0568cf2 100644 --- a/build.clj +++ b/build.clj @@ -72,7 +72,9 @@ (eastwood) (as-> opts (reduce (fn [opts alias] - (run-tests (assoc opts :aliases [alias]))) + (run-tests (assoc opts :aliases (cond-> [alias] + (not= :cljs alias) + (conj :runner))))) opts [:cljs :1.9 :1.10 :master])) (clean) diff --git a/deps.edn b/deps.edn index cc3f302..949a88b 100644 --- a/deps.edn +++ b/deps.edn @@ -16,9 +16,9 @@ {:extra-paths ["test"] :extra-deps {io.github.cognitect-labs/test-runner {:git/tag "v0.4.0" :git/sha "334f2e2"}} - ;; so we can run both ways: - :exec-fn cognitect.test-runner.api/test - :main-opts ["-m" "cognitect.test-runner"]} + :exec-fn cognitect.test-runner.api/test} + :runner + {:main-opts ["-m" "cognitect.test-runner"]} :cljs {:extra-deps {olical/cljs-test-runner {:mvn/version "3.8.0"}} :main-opts ["-m" "cljs-test-runner.main"]} :readme {:extra-deps {seancorfield/readme {:mvn/version "1.0.16"}}