Skip to content

Commit 6a55869

Browse files
committed
Add option to filter out by test-suite.
1 parent 56c1dc3 commit 6a55869

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/kaocha/testable.clj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,13 @@
270270
(doall testables)
271271
(let [load-error? (some ::load-error testables)
272272
types (set (:parallel-children-exclude *config*))
273+
suites (:parallel-suites-exclude *config*)
273274
futures (map #(do
274275
(future
275276
(binding [*config*
276277
(cond-> *config*
277278
(contains? types (:kaocha.testable/type %)) (dissoc :parallel)
279+
(and (hierarchy/suite? %) (contains? suites (:kaocha.testable/desc %))) (dissoc :parallel)
278280
true (update :levels (fn [x] (if (nil? x) 1 (inc x)))))]
279281
(run-testable % test-plan))))
280282
testables)]

0 commit comments

Comments
 (0)