Include :all test selector by default.

This commit is contained in:
Phil Hagelberg 2010-11-18 21:53:09 -08:00
parent a6d0a174df
commit 87753f890f
2 changed files with 3 additions and 2 deletions

View file

@ -39,7 +39,8 @@ each namespace and print an overall summary."
nses (if (or (empty? args) (every? keyword? args))
(sort (namespaces-in-dir (:test-path project)))
(filter symbol? args))
selectors (map (:test-selectors project) (filter keyword? args))
selectors (map (merge {:all '(constantly true)}
(:test-selectors project)) (filter keyword? args))
selectors (if (and (empty? selectors)
(:default (:test-selectors project)))
[(:default (:test-selectors project))]

View file

@ -51,8 +51,8 @@ See also http://github.com/technomancy/leiningen/issues
the standard lucene index system that Maven repositories offer.
This would also mean getting Clojars to produce those indices.
* For 1.4
** TODO :all and :none test-selectors built-in
** TODO :uberjar-exclusions?
** DONE :all test-selector built-in
** DONE test selectors need to support things like constantly, complement
** DONE detect missing level of nesting in project.clj's deps/dev-deps
** DONE clear out non-transitive .class files after AOT