Currently I am working on a project that is going on for a while. There is a lot of legacy code and there is a need for the kind of testing that arquillian can provide. I set up a pilot for jboss 4.2 and seam 2 and got it working. Because our project is not built with modularity in mind it is very difficult to create small targeted archives with shrinkwrap, so I decided to pull the whole enterprise archive from the maven repo and deploy it. The problem is that for every time I start a test the ear is deployed and this can take up to one minute this gets me out of my flow. And flow is one the reasons we want replace some of our selenium tests with arquillian based tests because we think we can build in container tests much faster with arquillian.
Is there a way to do the deployment one time and run my testcase many times afterwards, can I use jrebel or any other technique to speed up my red green refactor cycle?
Joris, I'm working on this currently. We have here 2 problems:
1) have single deployment for all test classes https://issues.jboss.org/browse/ARQ-197
2) create Arquillian extension so that Arquillian deploys the package only once and then single classes could be updated with JRebel
I'm working on the latter, but will need help from Aslak.
Thanks for your answer. I'm glad someone is working on these problems. I looked at issue https://issues.jboss.org/browse/ARQ-197 but I,m wondering if that is going to solve my problem because that is about doing one deployment for multiple testcases but still one deployment per test run. I'm often running only one test at the time, but very often in a short time I want to share deployment between test runs and maybe do it with something like maven!? So I prefer solution number two. Is this https://github.com/arquillian/arquillian-extension-jrebel the right place to track progress?
My pull request waits for approval. You can grab it from here: https://github.com/blabno/arquillian-extension-jrebel/tree/wip but once it's accepted it will be in https://github.com/arquillian/arquillian-extension-jrebel