From 1026f5b972f25e0593478abb1c2aa1a5fc521910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Wed, 24 Apr 2024 15:41:12 +0200 Subject: [PATCH] :wrench: Change common tests runner to kaocha --- .circleci/config.yml | 2 +- common/deps.edn | 8 ++------ common/test/common_tests/geom_point_test.cljc | 2 +- common/tests.edn | 4 ++++ 4 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 common/tests.edn diff --git a/.circleci/config.yml b/.circleci/config.yml index e1a6e629f..18d7cf5d7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -93,7 +93,7 @@ jobs: working_directory: "./common" command: | yarn test - clojure -X:dev:test :patterns '["common-tests.*-test"]' + clojure -M:dev:test - run: name: "frontend tests" diff --git a/common/deps.edn b/common/deps.edn index b014882f9..704021288 100644 --- a/common/deps.edn +++ b/common/deps.edn @@ -76,12 +76,8 @@ :ns-default build} :test - {:extra-paths ["test"] - :extra-deps - {io.github.cognitect-labs/test-runner - {:git/tag "v0.5.1" :git/sha "dfb30dd"}} - :main-opts ["-m" "cognitect.test-runner"] - :exec-fn cognitect.test-runner.api/test} + {:main-opts ["-m" "kaocha.runner"] + :extra-deps {lambdaisland/kaocha {:mvn/version "1.88.1376"}}} :shadow-cljs {:main-opts ["-m" "shadow.cljs.devtools.cli"]} diff --git a/common/test/common_tests/geom_point_test.cljc b/common/test/common_tests/geom_point_test.cljc index 0490e1d02..6ba7239f0 100644 --- a/common/test/common_tests/geom_point_test.cljc +++ b/common/test/common_tests/geom_point_test.cljc @@ -203,7 +203,7 @@ (t/is (mth/close? 1.5 (:x rs))) (t/is (mth/close? 3.5 (:y rs))))) -(t/deftest transform-point +(t/deftest ^:kaocha/skip transform-point ;;todo ) diff --git a/common/tests.edn b/common/tests.edn new file mode 100644 index 000000000..9f487a7ea --- /dev/null +++ b/common/tests.edn @@ -0,0 +1,4 @@ +#kaocha/v1 + {:tests [{:id :unit + :test-paths ["test"]}] + :kaocha/reporter [kaocha.report/dots]}