Qualify implicit ::test profile. Fixes #659 for real, hopefully.

This commit is contained in:
Phil Hagelberg 2012-06-22 13:19:46 -07:00
parent 9a04a356a5
commit b7c6a63fd5
3 changed files with 6 additions and 3 deletions

View file

@ -149,7 +149,7 @@
:resource-paths
:compile-path]}
:production {}
:test {:injections [hooke-injection]}
:leiningen.test/test {:injections [hooke-injection]}
:update {:update :always}
:offline {:offline? true}
:debug {:debug true}}))

View file

@ -91,7 +91,7 @@ tests are run."
[project & tests]
(binding [main/*exit-process?* (not= :leiningen (:eval-in project))
*exit-after-tests* (not= :leiningen (:eval-in project))]
(let [project (project/merge-profiles project [:test])
(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)

View file

@ -70,7 +70,10 @@
(is (empty? (.list (file (:compile-path tricky-name-project))))))
(deftest test-injection
(eval/eval-in-project sample-project '#'leiningen.core.injected/add-hook))
(eval/eval-in-project (assoc sample-project
:injections ['(do (ns inject.stuff)
(def beef :hot))])
'#'inject.stuff/beef))
;; (deftest test-compile-java-main
;; (compile dev-deps-project))