vert-x / mod-lang-clojure

Vert.x 2.x is deprecated - use instead
http://vertx.io
Other
74 stars 15 forks source link

vertx maven archetype has no integration tests template for clojure #125

Closed jianglibo closed 9 years ago

jianglibo commented 9 years ago

so I copy one from source APIIntegrationTests.java. put it in integration/clojure/ClojureScriptIntegrationTest.java, when I run mvn intergration-test, It display "Started clojure verticle: basic_integration_test.clj" and stalled. the content of basic_integration_test.clj is copy from source net_test.clj.

what's wrong?

tobias commented 9 years ago

There are two types of tests in mod-lang-clojure - some that use clojure.test, and others that use vertx.testtools instead. APIIntegrationTests can only load and run testtool-style tests (like the ones under lang-module/src/test/resources/). The tests under api/src/test/clojure/ are designed to be ran directly in clojure, which is handled by the clojure-maven-plugin (see api/pom.xml).

The tests in lang-module/ deploy a verticle for each test, which can be a bit slow. If you aren't testing any deployment or platform features, it's simpler to use clojure-maven-plugin and clojure.test directly, like the tests under api/.

jianglibo commented 9 years ago

I see. thank you very much. help me a lot.