File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 123
123
(assoc testable ::load-error t)
124
124
(throw t)))))
125
125
126
- (s /fdef load
127
- :args (s /cat :testable :kaocha/testable )
126
+ (spec /fdef load
127
+ :args (spec /cat :testable :kaocha/testable )
128
128
:ret :kaocha.test-plan/testable )
129
129
130
130
(defmulti -run
267
267
268
268
(defn current-thread-info []
269
269
(let [thread (Thread/currentThread )]
270
- {:name (.getName thread)
271
- :id (.getId thread)
270
+ {:name (.getName thread)
271
+ :id (.getId thread)
272
272
:group-name (.getName (.getThreadGroup thread))}))
273
273
274
274
(defn run-testables-parallel
277
277
(doall testables)
278
278
(let [load-error? (some ::load-error testables)
279
279
types (set (:parallel-children-exclude *config*))
280
- suites (:parallel-suites-exclude *config*)
280
+ suites (:parallel-suites-exclude *config*)
281
281
futures (map #(do
282
282
(future
283
283
(binding [*config*
Original file line number Diff line number Diff line change 66
66
67
67
(deftest merge-ns-patterns-issue-124-test
68
68
(testing " https://github.com/lambdaisland/kaocha/issues/124"
69
- (is (= #:kaocha{:early-exit 250 }
69
+ (is (= #:kaocha{:early-exit 252 }
70
70
(try+
71
71
(config/merge-config {:kaocha/ns-patterns " test" } {:kaocha/ns-patterns " test" })
72
72
(catch :kaocha/early-exit e
158
158
:kaocha/plugins (m/embeds [:some.kaocha.plugin/qux :other.kaocha.plugin/bar ])}
159
159
(config/load-config-for-cli-and-validate (io/resource " kaocha/config/loaded-test-resource.edn" ) {}))))
160
160
(testing " falls back to default when resource does not exist"
161
- (is (match?
162
- ; ; Deliberately minimal case because we want to test this behavior
163
- ; ; (fallback to tests.edn) without tying too much to tests.edn
164
- {:kaocha.hooks/pre-load ['kaocha.assertions/load-assertions] }
165
- (config/load-config-for-cli-and-validate (io/resource " resource-that-does-not-exist.edn" ) {})))))
161
+ (is (match?
162
+ ; ; Deliberately minimal case because we want to test this behavior
163
+ ; ; (fallback to tests.edn) without tying too much to tests.edn
164
+ {:kaocha.hooks/pre-load ['kaocha.assertions/load-assertions] }
165
+ (config/load-config-for-cli-and-validate (io/resource " resource-that-does-not-exist.edn" ) {})))))
166
166
(testing " loading a file with profiles"
167
167
(testing " specifying a profile"
168
168
(is (match? {:kaocha/reporter 'kaocha.report.progress/report}
You can’t perform that action at this time.
0 commit comments