diff options
| author | EuAndreh <eu@euandre.org> | 2025-12-21 20:18:00 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2025-12-21 20:18:00 -0300 |
| commit | b9d45f2c6c342fd97a2e3b9a3c46bb8e6c599228 (patch) | |
| tree | e42c05e49e17b4ceaf1d60129e182a6c2210de19 | |
| parent | etc/logback.xml: Use FileAppend for datomic's ad-hoc log format (diff) | |
| download | datomic-b9d45f2c6c342fd97a2e3b9a3c46bb8e6c599228.tar.gz datomic-b9d45f2c6c342fd97a2e3b9a3c46bb8e6c599228.tar.xz | |
tests/: Require datomic.api in tests and capture more things to stderr
| -rw-r--r-- | tests/integration.clj | 15 | ||||
| -rw-r--r-- | tests/unit.clj | 15 |
2 files changed, 16 insertions, 14 deletions
diff --git a/tests/integration.clj b/tests/integration.clj index c47b501..790e053 100644 --- a/tests/integration.clj +++ b/tests/integration.clj @@ -1,5 +1,6 @@ (ns integration (:require [clojure.test :as t :refer [are deftest is testing]] + [datomic.api :as d] [dtmc]) (:gen-class)) @@ -7,10 +8,10 @@ (defn -main [& _args] - (let [{:keys [fail error] :as res} (t/run-tests 'integration) - status (if (zero? (+ fail error)) - 0 - 1)] - (binding [*out* *err*] - (prn res)) - (System/exit status))) + (binding [*out* *err*] + (let [{:keys [fail error] :as res} (t/run-tests 'integration) + status (if (zero? (+ fail error)) + 0 + 1)] + (prn res) + (System/exit status)))) diff --git a/tests/unit.clj b/tests/unit.clj index 7c2f589..d260d28 100644 --- a/tests/unit.clj +++ b/tests/unit.clj @@ -1,5 +1,6 @@ (ns unit (:require [clojure.test :as t :refer [are deftest is testing]] + [datomic.api :as d] [dtmc]) (:gen-class)) @@ -7,10 +8,10 @@ (defn -main [& _args] - (let [{:keys [fail error] :as res} (t/run-tests 'unit) - status (if (zero? (+ fail error)) - 0 - 1)] - (binding [*out* *err*] - (prn res)) - (System/exit status))) + (binding [*out* *err*] + (let [{:keys [fail error] :as res} (t/run-tests 'unit) + status (if (zero? (+ fail error)) + 0 + 1)] + (prn res) + (System/exit status)))) |
