From 87753f890f7fd1fed0f6f7c169dc677e4530fcba Mon Sep 17 00:00:00 2001 From: Phil Hagelberg Date: Thu, 18 Nov 2010 21:53:09 -0800 Subject: [PATCH] Include :all test selector by default. --- src/leiningen/test.clj | 3 ++- todo.org | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/leiningen/test.clj b/src/leiningen/test.clj index 549977e3..19027a6a 100644 --- a/src/leiningen/test.clj +++ b/src/leiningen/test.clj @@ -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))] diff --git a/todo.org b/todo.org index 65a9c2cb..329c4162 100644 --- a/todo.org +++ b/todo.org @@ -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