Permalink
Browse files

Honor :test profile in test task.

  • Loading branch information...
1 parent a68774c commit a587d4207ae80ba22e4a910017ca737ead384727 @technomancy committed Feb 7, 2012
Showing with 5 additions and 3 deletions.
  1. +4 −2 src/leiningen/test.clj
  2. +1 −1 todo.org
View
6 src/leiningen/test.clj
@@ -3,7 +3,8 @@
(:refer-clojure :exclude [test])
(:require [clojure.java.io :as io]
[leiningen.core.ns :as ns]
- [leiningen.core.eval :as eval])
+ [leiningen.core.eval :as eval]
+ [leiningen.core.project :as project])
(:import (java.io File)))
(def ^:dynamic *exit-after-tests* true)
@@ -68,7 +69,8 @@ each namespace and print an overall summary."
Accepts either a list of test namespaces to run or a list of test
selectors. With no arguments, runs all tests."
[project & tests]
- (let [[nses selectors] (read-args tests project)
+ (let [project (project/merge-profiles project [:test])
+ [nses selectors] (read-args tests project)
result (doto (File/createTempFile "lein" "result") .deleteOnExit)
form (form-for-testing-namespaces nses (.getAbsolutePath result)
(vec selectors))]
View
2 todo.org
@@ -17,9 +17,9 @@ See also https://github.com/technomancy/leiningen/issues
- [X] More flexibility for jarring
- [X] Allow tasks to add in their own injections
- [X] Allow disabling of all injected code
+ - [X] Activate :test profile in test task
- [ ] Hook up reply to nrepl for new repl task?
- [ ] Resurrect native deps?
- - [ ] Activate :test profile in test task
- [ ] Honor hooks declared in plugin jar metadata?
- [ ] Pass user-level repository auth settings on to pomegranate.
- [ ] In-process eval-in-project? (possibly post-preview)

0 comments on commit a587d42

Please sign in to comment.