J Fabian Meier
J Fabian Meier

Reputation: 35843

Integration tests when building an EAR

I noticed that the standard EAR lifecycle of Maven does not mention tests:

http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

It is true that unit tests make little sense in EARs (there is no code to compile). But what about integration tests?

To make this work I would need to add the test code to the ear and add test compile and integration test goals to the lifecycle. But, as the EAR is the only standard form of packaging without such a default binding, I guess I do something wrong.

What is the proper solution to run integration tests against an EAR?

Upvotes: 0

Views: 125

Answers (0)

Related Questions