Maven plug-in integration testing.
After walking around integration tests for Overview I finally set down and made it happen.
Most helpful integration testing solution I found is called SHITTY http://mojo.codehaus.org/shitty-maven-plugin/.
It is very easy to use.
As sane developer would expect, you'll have to put your integration tests somewhere in src (src/it).
Integration test is:
- yes you are right, pom.xml,
- than goals.txt - defining goals to execute,
- optional setup and validation Groovy scripts.
- some additional stuff that wasn't needed for me.
Big thanks to Jason Dillon for creating Super Helpful Integration Testing ThingY.
About integration tests, look also at the failsafe plugin at:
ReplyDeletehttp://mojo.codehaus.org/failsafe-maven-plugin/
which is a fork of Surefire aimed at integration tests.