File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 99
99
(with-bindings (config/binding-map config)
100
100
(let [config (resolve-reporter config)]
101
101
(let [test-plan (test-plan config)]
102
+
102
103
(when-not (some #(or (hierarchy/leaf? %)
103
104
(::testable/load-error %))
104
105
(testable/test-seq test-plan))
105
- (output/warn (str " No tests were found, make sure :test-paths and "
106
- " :ns-patterns are configured correctly in tests.edn." ))
106
+ (if (not (zero? (count (filter ::testable/skip (testable/test-seq-with-skipped test-plan)))))
107
+ (output/warn (format (str " All %d tests were skipped."
108
+ " Check for misspelled settings in your Kaocha test configuration"
109
+ " or incorrect focus or skip filters." )
110
+ (count (testable/test-seq-with-skipped test-plan))))
111
+ (output/warn (str " No tests were found. This may be an issue in your Kaocha test configuration."
112
+ " To investigate, check the :test-paths and :ns-patterns keys in tests.edn." )))
107
113
(throw+ {:kaocha/early-exit 0 }))
114
+
108
115
(when (find-ns 'matcher-combinators.core)
109
116
(require 'kaocha.matcher-combinators))
110
117
Original file line number Diff line number Diff line change 235
235
; ; the outer map. When running on an actual testable, do include it.
236
236
(:kaocha.testable/id testable)
237
237
(cons testable)))
238
+
239
+ (defn test-seq-with-skipped
240
+ [testable]
241
+ " Create a seq of all tests, including any skipped tests.
242
+
243
+ Typically you want to look at `test-seq` instead."
244
+ (cond->> (mapcat test-seq (or (:kaocha/tests testable)
245
+ (:kaocha.test-plan/tests testable)
246
+ (:kaocha.result/tests testable)))
247
+ ; ; When calling test-seq on the top level test-plan/result, don't include
248
+ ; ; the outer map. When running on an actual testable, do include it.
249
+ (:kaocha.testable/id testable)
250
+ (cons testable)))
You can’t perform that action at this time.
0 commit comments