clojure maven plugin: clojure tests succeed when using mvn clojure:test but NOT during test phase when using mvn install -


i using clojure maven plugin build project. projects contains test, let mytest.clj, has content following:

(def ^:dynamic *server*   (create-server "tcp://bla.bla:9999"))  (deftest blabla1...) (deftest blabla2...) 

if run mvn clojure:test , build runs successfully.

but if run mvn install when test phase reached, server declared in mytest.clj started. after start, nothing more happens: clojure test script seems frozen , building of project cannot continued (without error message): maven hangs. although, said, mvn clojure:test runs same project.

does know how solve problem?

any appreciated. thx in advance regards

horace

p.s: can use standard mvn install compile , test clojure sources because project's packaging configured 'clojure' 1 in pom.xml. consequence of it, clojure maven plugin automatically binds maven phases compile, test , test-compile.

the problem starting server when tests run, not shutting down server when finished.

you'll want use fixtures make sure you're killing threads/agents/servers start in test.

see clojure: how use-fixtures in testing


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -