From a55fead350cb53e7815141681efd4e47ec84d285 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Fri, 30 Aug 2024 14:15:47 +0200 Subject: [PATCH] initial try outs --- deps.edn | 9 +++------ infrastructure/backup/test/resources/bb.edn | 3 ++- test/dda/backup/backup/domain_test.clj | 2 +- tests.edn | 13 ++++++++++++- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/deps.edn b/deps.edn index 5833359..c8e1afa 100644 --- a/deps.edn +++ b/deps.edn @@ -17,16 +17,13 @@ ;; --------------------------------------------------------- :aliases { - ;; ------------ - ;; Add libraries and paths to support additional test tools - :test/env - {} - + ;; Test runner - local and CI ;; call with :watch? true to start file watcher and re-run tests on saved changes :test/run {:extra-paths ["test"] - :extra-deps {lambdaisland/kaocha {:mvn/version "1.91.1392"}} + :extra-deps {lambdaisland/kaocha {:mvn/version "1.91.1392"} + expound/expound {:mvn/version "0.9.0"}} :main-opts ["-m" "kaocha.runner"] :exec-fn kaocha.runner/exec-fn :exec-args {:randomize? false diff --git a/infrastructure/backup/test/resources/bb.edn b/infrastructure/backup/test/resources/bb.edn index 1a7297a..d642d52 100644 --- a/infrastructure/backup/test/resources/bb.edn +++ b/infrastructure/backup/test/resources/bb.edn @@ -1,3 +1,4 @@ -{:deps {org.clojure/spec.alpha {:mvn/version "0.4.233"} +{:deps {org.babashka/spec.alpha {:git/url "https://github.com/babashka/spec.alpha" + :git/sha "1a841c4cc1d4f6dab7505a98ed2d532dd9d56b78"} orchestra/orchestra {:mvn/version "2021.01.01-1"} org.domaindrivenarchitecture/dda-backup {:local/root "/usr/local/lib/dda-backup"}}} diff --git a/test/dda/backup/backup/domain_test.clj b/test/dda/backup/backup/domain_test.clj index 1e7a9d5..7eadff4 100644 --- a/test/dda/backup/backup/domain_test.clj +++ b/test/dda/backup/backup/domain_test.clj @@ -18,7 +18,7 @@ "file2" "file2"]] (cut/backup-files-command {:restic-repository "repo" - :backup-path "dir-at-repo" + ;:backup-path "dir-at-repo" :execution-directory "dir-to-backup" :days-to-keep 39 :months-to-keep 3 diff --git a/tests.edn b/tests.edn index 0513579..07e6b24 100644 --- a/tests.edn +++ b/tests.edn @@ -10,4 +10,15 @@ ;; --------------------------------------------------------- -#kaocha/v1 {} +#kaocha/v1 {:plugins [:orchestra + :kaocha.plugin.alpha/info + :profiling + :print-invocations + :hooks + :notifier + :kaocha.plugin/version-filter] + + :kaocha/bindings {kaocha.stacktrace/*stacktrace-filters* [] + kaocha.stacktrace/*stacktrace-stop-list* []} + + :reporter kaocha.report/documentation}