Skip to content

Commit d144fbc

Browse files
committed
Reword errors following Arne's advice.
Fix the "No tests found"/"tests were skipped" contradiction and clarify that we're speaking of Kaocha's configuration.
1 parent b875e2c commit d144fbc

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/kaocha/api.clj

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,12 @@
104104
(::testable/load-error %))
105105
(testable/test-seq test-plan))
106106
(if (not (zero? (count (filter ::testable/skip (testable/test-seq-with-skipped test-plan)))))
107-
(output/warn (str "No tests were found and some tests were"
108-
" skipped; check for misspelled settings"
109-
" or combinations of settings that no tests"
110-
" satisfy."))
111-
(output/warn (str "No tests were found. This may be an issue in your test configuration."
112-
" To investigate, check the :test-paths and :ns-patterns keys in tests.edn."))
113-
)
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.")))
114113
(throw+ {:kaocha/early-exit 0 }))
115114

116115
(when (find-ns 'matcher-combinators.core)

0 commit comments

Comments
 (0)