Skip to content

Commit

Permalink
Post-rebase fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
plexus authored and alysbrooks committed Nov 22, 2023
1 parent 356d22c commit fbfd541
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/kaocha/testable.clj
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@
(assoc testable ::load-error t)
(throw t)))))

(s/fdef load
:args (s/cat :testable :kaocha/testable)
(spec/fdef load
:args (spec/cat :testable :kaocha/testable)
:ret :kaocha.test-plan/testable)

(defmulti -run
Expand Down Expand Up @@ -267,8 +267,8 @@

(defn current-thread-info []
(let [thread (Thread/currentThread)]
{:name (.getName thread)
:id (.getId thread)
{:name (.getName thread)
:id (.getId thread)
:group-name (.getName (.getThreadGroup thread))}))

(defn run-testables-parallel
Expand All @@ -277,7 +277,7 @@
(doall testables)
(let [load-error? (some ::load-error testables)
types (set (:parallel-children-exclude *config*))
suites (:parallel-suites-exclude *config*)
suites (:parallel-suites-exclude *config*)
futures (map #(do
(future
(binding [*config*
Expand Down
12 changes: 6 additions & 6 deletions test/unit/kaocha/config_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

(deftest merge-ns-patterns-issue-124-test
(testing "https://github.com/lambdaisland/kaocha/issues/124"
(is (= #:kaocha{:early-exit 250}
(is (= #:kaocha{:early-exit 252}
(try+
(config/merge-config {:kaocha/ns-patterns "test"} {:kaocha/ns-patterns "test"})
(catch :kaocha/early-exit e
Expand Down Expand Up @@ -158,11 +158,11 @@
:kaocha/plugins (m/embeds [:some.kaocha.plugin/qux :other.kaocha.plugin/bar])}
(config/load-config-for-cli-and-validate (io/resource "kaocha/config/loaded-test-resource.edn") {}))))
(testing "falls back to default when resource does not exist"
(is (match?
;; Deliberately minimal case because we want to test this behavior
;; (fallback to tests.edn) without tying too much to tests.edn
{:kaocha.hooks/pre-load ['kaocha.assertions/load-assertions] }
(config/load-config-for-cli-and-validate (io/resource "resource-that-does-not-exist.edn") {})))))
(is (match?
;; Deliberately minimal case because we want to test this behavior
;; (fallback to tests.edn) without tying too much to tests.edn
{:kaocha.hooks/pre-load ['kaocha.assertions/load-assertions] }
(config/load-config-for-cli-and-validate (io/resource "resource-that-does-not-exist.edn") {})))))
(testing "loading a file with profiles"
(testing "specifying a profile"
(is (match? {:kaocha/reporter 'kaocha.report.progress/report}
Expand Down

0 comments on commit fbfd541

Please sign in to comment.