Move test's shutdown-agents to inside eval-in-project.
This commit is contained in:
parent
4a11590edb
commit
0aca88dcde
1 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,8 @@ each namespace and print an overall summary."
|
||||||
{} '~namespaces)]
|
{} '~namespaces)]
|
||||||
(clojure.test/with-test-out
|
(clojure.test/with-test-out
|
||||||
(println "\n\n--------------------\nTotal:")
|
(println "\n\n--------------------\nTotal:")
|
||||||
(clojure.test/report summary#)))))
|
(clojure.test/report summary#))
|
||||||
|
(shutdown-agents))))
|
||||||
|
|
||||||
(defn test
|
(defn test
|
||||||
"Run the project's tests. Accept a list of namespaces for which to run all
|
"Run the project's tests. Accept a list of namespaces for which to run all
|
||||||
|
@ -29,5 +30,4 @@ tests for. If none are given, runs them all."
|
||||||
(let [namespaces (if (empty? namespaces)
|
(let [namespaces (if (empty? namespaces)
|
||||||
(find-namespaces-in-dir (file (:test-path project)))
|
(find-namespaces-in-dir (file (:test-path project)))
|
||||||
(map symbol namespaces))]
|
(map symbol namespaces))]
|
||||||
(eval-in-project project (form-for-testing-namespaces namespaces))
|
(eval-in-project project (form-for-testing-namespaces namespaces))))
|
||||||
(shutdown-agents)))
|
|
||||||
|
|
Loading…
Reference in a new issue