From 10d1e12e0a0eaa692f016f6f24813340c0afc964 Mon Sep 17 00:00:00 2001 From: Miikka Koskinen Date: Sat, 10 Mar 2018 12:28:49 +0200 Subject: [PATCH 1/2] Update to bat-test --- project.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project.clj b/project.clj index debf8fdc..b55bab6c 100644 --- a/project.clj +++ b/project.clj @@ -24,7 +24,7 @@ [lein-cljsbuild "1.1.7"] [lein-cloverage "1.0.10"] [lein-codox "0.10.3"] - [metosin/boot-alt-test "0.4.0-20171019.180106-3"]] + [metosin/bat-test "0.4.0"]] :profiles {:dev {:jvm-opts ^:replace ["-server"] @@ -70,12 +70,12 @@ "-XX:+PrintInlining"]}} :aliases {"all" ["with-profile" "dev"] "perf" ["with-profile" "default,dev,perf"] - "test-clj" ["all" "do" ["alt-test"] ["check"]] + "test-clj" ["all" "do" ["bat-test"] ["check"]] "test-browser" ["doo" "chrome-headless" "test"] "test-advanced" ["doo" "chrome-headless" "advanced-test"] "test-node" ["doo" "node" "node-test"]} - :alt-test {:report [:pretty + :bat-test {:report [:pretty {:type :junit :output-to "target/junit.xml"}]} From 046b3c5667d6d5c3b6ed31a0663e72bb2dcf6f8f Mon Sep 17 00:00:00 2001 From: Miikka Koskinen Date: Sat, 10 Mar 2018 12:32:16 +0200 Subject: [PATCH 2/2] Circle: Make test summary work --- .circleci/config.yml | 4 +++- project.clj | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 053fd450..59a00052 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,7 +17,9 @@ jobs: name: Run tests command: ./scripts/test.sh clj - store_test_results: - path: ~/test/target/junit.xml + # path must be a directory under which there a subdirectories that + # contain the JUnit XML files. + path: ~/test/target/results # - run: # name: Run coverage # command: ./scripts/submit-to-coveralls.sh clj diff --git a/project.clj b/project.clj index b55bab6c..bac0b855 100644 --- a/project.clj +++ b/project.clj @@ -77,7 +77,7 @@ :bat-test {:report [:pretty {:type :junit - :output-to "target/junit.xml"}]} + :output-to "target/results/reitit/junit.xml"}]} :cljsbuild {:builds [{:id "test" :source-paths ["src" "test/cljc" "test/cljs"]