You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Fail-fast" is a commonly wanted feature. Some alternative test runners provide a form of it, although they may be a bit framework-ish. I like that utils.test is literally a collection of utils for clojure.test, assuming nothing.
It seems great to have a reusable defn that can be invoked from any project (especially from a repl) regardless of its setup.
Then one can do (clojure.tools.namespace.repl/refresh :after 'my/run-all-tests).
This could be further integrated with formatting-stack's test runner, with the project template, etc
...the snippet has worked well for me over the last month, also I had a similar but more intrincate incarnation of it based off CircleCI's test runner over 2020.
Because of how we name tests / testing namespaces it allows me to target broader or more specific tests across multiple namespaces, it also uses eftest (or kaocha, depending on the specific project).
Although it'd be complex to support any configuration like this; so probably relying on clj.test is a fine assumption.
Context
"Fail-fast" is a commonly wanted feature. Some alternative test runners provide a form of it, although they may be a bit framework-ish. I like that utils.test is literally a collection of utils for clojure.test, assuming nothing.
It seems great to have a reusable defn that can be invoked from any project (especially from a repl) regardless of its setup.
Proposal
Bundle a helper such as:
Then one can do
(clojure.tools.namespace.repl/refresh :after 'my/run-all-tests)
.This could be further integrated with formatting-stack's test runner, with the project template, etc
...the snippet has worked well for me over the last month, also I had a similar but more intrincate incarnation of it based off CircleCI's test runner over 2020.
Thoughts?
cc/ @thumbnail
The text was updated successfully, but these errors were encountered: