Add a comment explaining that the test task is a legacy monkeypatch.

[skip ci]
This commit is contained in:
Phil Hagelberg 2017-09-18 10:19:49 -07:00
parent b939b3a5ca
commit 1cebb9a93b

View file

@ -10,6 +10,18 @@
(def ^:dynamic *exit-after-tests* true) (def ^:dynamic *exit-after-tests* true)
;; This is a massive and terrible monkeypatch to work around the fact
;; that the built-in clojure.test library does not accept patches from
;; outside the core team. At this point the monkeypatching code below
;; should be considered legacy, and rather than trying to improve it,
;; all efforts should be instead directed towards improving external
;; libraries such as https://github.com/circleci/circleci.test, which
;; has a superset of these features and also doesn't require you to
;; stop using clojure.test to write your tests.
;; We recommend that projects override the test task with an alias
;; that calls out to a third-party testing library instead.
(def form-for-suppressing-unselected-tests (def form-for-suppressing-unselected-tests
"A function that figures out which vars need to be suppressed based on the "A function that figures out which vars need to be suppressed based on the
given selectors, moves their :test metadata to :leiningen/skipped-test (so given selectors, moves their :test metadata to :leiningen/skipped-test (so