Skip to content

Commit

Permalink
remove cognitect test-runner, just do this manually to remove all var…
Browse files Browse the repository at this point in the history
…iables
  • Loading branch information
swannodette committed Jun 27, 2020
1 parent 45e29f5 commit b5f1860
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
"src/test/clojure" "src/test/self"]
:extra-deps {com.cognitect/test-runner {:git/url "https://github.com/cognitect-labs/test-runner.git"
:sha "f7ef16dc3b8332b0d77bc0274578ad5270fbfedd"}}}
:compiler.test.run {:main-opts ["-m" "cognitect.test-runner" "-d" "src/test/clojure" "-r" ".*-tests$"]}}}
:compiler.test.run {:main-opts ["-m" "cljs.test-runner"]}}}
28 changes: 22 additions & 6 deletions src/test/clojure/cljs/test_runner.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
(ns cljs.test-runner
(:require [cljs.source-map.base64-tests]
[cljs.analyzer-api-tests]
(:require [cljs.analyzer-api-tests]
[cljs.analyzer-tests]
[cljs.build-api-tests]
[cljs.closure-tests]
Expand All @@ -9,10 +8,27 @@
[cljs.externs-parsing-tests]
[cljs.module-graph-tests]
[cljs.module-processing-tests]
[cljs.module-graph-tests]
[cljs.module-processing-tests]
[cljs.source-map.base64-tests]
[cljs.type-inference-tests]
[cljs.util-tests]
[clojure.test :refer [run-all-tests]]))
[clojure.test :refer [run-tests]]))

(run-all-tests)
(defn -main []
(let [{:keys [fail error]}
(run-tests
'cljs.analyzer-api-tests
'cljs.analyzer-tests
'cljs.build-api-tests
'cljs.closure-tests
'cljs.compiler-tests
'cljs.externs-infer-tests
'cljs.externs-parsing-tests
'cljs.module-graph-tests
'cljs.module-processing-tests
'cljs.source-map.base64-tests
'cljs.type-inference-tests
'cljs.util-tests)]
(if (or (not (zero? fail))
(not (zero? error)))
(System/exit 1)
(System/exit 0))))

0 comments on commit b5f1860

Please sign in to comment.