From dc59f3ec98efd1f8666bf30b29f0d7dbff8ef63b Mon Sep 17 00:00:00 2001 From: Andrea Richiardi Date: Fri, 6 Apr 2018 21:24:09 -0700 Subject: [PATCH] Add minimal self-host testing --- project.clj | 6 +++++- test/core/mount/test_self_host.cljs | 17 +++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 test/core/mount/test_self_host.cljs diff --git a/project.clj b/project.clj index 02f9081..95abeee 100644 --- a/project.clj +++ b/project.clj @@ -8,6 +8,9 @@ :dependencies [] ;; for visual clarity + :tach {:test-runner-ns 'mount.test-self-host + :source-paths ["test/core"]} + :profiles {:dev {:source-paths ["dev" "dev/clj" "test/clj"] :dependencies [[org.clojure/clojure "1.7.0"] [org.clojure/clojurescript "1.7.170"]; :classifier "aot"] @@ -27,7 +30,8 @@ :plugins [[lein-cljsbuild "1.1.1"] [lein-doo "0.1.6"] [lein-figwheel "0.5.0-2"] - [test2junit "1.1.3"]] + [test2junit "1.1.3"] + [lein-tach "1.0.0"]] :test2junit-output-dir ~(or (System/getenv "CIRCLE_TEST_REPORTS") "target/test2junit") diff --git a/test/core/mount/test_self_host.cljs b/test/core/mount/test_self_host.cljs new file mode 100644 index 0000000..006c5fc --- /dev/null +++ b/test/core/mount/test_self_host.cljs @@ -0,0 +1,17 @@ +(ns mount.test-self-host + (:require + [cljs.test :as t] + + mount.test.fun-with-values + mount.test.private-fun + mount.test.printing + )) + +(t/run-tests + 'mount.test.fun-with-values + 'mount.test.private-fun + 'mount.test.printing + ) + +(defn run-tests [] + (t/run-all-tests #"mount.test.*"))