On Thu, Sep 29, 2011 at 12:01 AM, David Blevins <[email protected]>wrote:
> > On Sep 28, 2011, at 3:36 PM, Jonathan Gallimore wrote: > > > When I hacked up the Remote with zip adapter I intended to > > merge it into the remote adapter - along the lines of: check to see if > TomEE > > is running on the port specified in arquillian.xml. If it is, just deploy > > straight to it. If not, go grab the zip and use that. Does that sound > like a > > reasonable idea? > > Very reasonable. That's what the itests have done for years, the CDI TCK > does and the Java EE TCK setup does. > > It's pretty easy to have the rule of "if you don't want us to start a > server, make sure a server is started" > Cool, I'll get that done. > > > That leaves the embedded-with-war adapter as something that might seem a > bit > > odd. Currently I can't get it to run correctly, but that might be > something > > wrong with my machine. What's people's opinion of this method? Should we > > drop this, or is it a useful adapter to hang on to? > > My impression is I would never ever advise a user to use it. That said, > it's an absolutely fabulous way for us to test the drop-in-war > functionality. Well, almost fabulous... the real world scenario is an > existing Tomcat install, not an embedded one. > > Either way, if we say to people "you can do this and it works!" having an > adapter for it us a must. Especially if we get things to the point where we > can easily reuse the full set of tests on each adapter. At that point we > just need to hook up each adapter with a buildbot builder and suddenly we > have a dreamlike level of testing for the various features we offer. > We shouldn't have any issues getting the tests to run on all the adapters. Worst case we can use Maven profiles and run the tests against the embedded adapter by default, and you just switch profile to use the other modes. The buildbot builders can then presumably be setup with the necessary profile switch in their build. I was thinking it would be cool to try and extend either the test suite or the Arquillian test runner somehow so the test then runs against all the adapters in one go. I was going to do the Maven profile bit first, as that should be reasonably straightforward, and then take it from there. > > This "Tomcat + war" approach is a great way to setup buildbot to test > "Tomcat 5.5 + war" and "Tomcat 6 + war" > > It's hard to describe how important this stuff is. Once it's in place, we > won't be able to imagine life before it. :) > Glad its useful, I've certainly had a lot of fun working on it :) Jon
