I seen a few posts (for instance here 1) suggesting to use groovy to write integration tests for java applications in groovy programming language. I am working on an application using the following technologies: Java 7, java EE 6, POSTGRESQL
I know groovy is
But is there any particular reason to use it for ITs? Adding another programming language to your codebase would not make your life hell? I think I am missing something from the picture, so I would appreciate your responses.
I will soon start a project with exactly the same stack as yours, but Groovy will also be in production code, not only tests.
There is no problem in adding Groovy to your codebase, because it is an easy language. It'd be a different story if you were including some language which doesn't look a lot like java, say haskell or prolog. You are already including Facelets, EL, CSS, HTML and Javascript. Which part of adding another language is bad? :-)
The main points i pick up for Groovy in IT tests:
Other just-to-cool-to-forget stuff in Groovy:
We had test teams in my two last companies which weren't working in production code, but started writing tests in Groovy pretty quickly and enjoyed the language: no worries about types and stuff, just working tests!