diff --git a/.circleci/config.yml b/.circleci/config.yml index 0494705b2..70ba3b801 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -116,7 +116,7 @@ jobs: name: "backend tests" working_directory: "./backend" command: | - clojure -X:dev:test :patterns '["backend-tests.*-test"]' + clojure -M:dev:test environment: PENPOT_TEST_DATABASE_URI: "postgresql://localhost/penpot_test" diff --git a/backend/deps.edn b/backend/deps.edn index d74362cef..df9fd4708 100644 --- a/backend/deps.edn +++ b/backend/deps.edn @@ -78,12 +78,9 @@ :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"] + :jvm-opts ["-Dlog4j2.configurationFile=log4j2-devenv-repl.xml"] + :extra-deps {lambdaisland/kaocha {:mvn/version "1.88.1376"}}} :outdated {:extra-deps {com.github.liquidz/antq {:mvn/version "RELEASE"}} diff --git a/backend/tests.edn b/backend/tests.edn index 6d31eb3c6..7af172c44 100644 --- a/backend/tests.edn +++ b/backend/tests.edn @@ -2,4 +2,5 @@ {:tests [{:id :unit :test-paths ["test" "src"] - :ns-patterns [".*-test$"]}]} + :ns-patterns [".*-test$"] + :kaocha/reporter [kaocha.report/dots]}]}