On 2/2/06, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote: > > > Yes there is a disconnect here. Thanks for educating us on what a unit > test is, but somebody is going to have to explain to me how we test > Tuscany without using side files when the most of the SCA assembly spec > is about configuring and wiring components using SCDL side files. >
This is why we have a model - it allows us to separate how the configuration information is loaded from how the system is built. One set of tests can focus on parsing the XML files and checking that the appropriate model is generated; another can focus on converting that logical model into the runtime contexts; a third can focus on the operation of the contexts themselves. The model allows us to decompose this into more testable chunks. There is a lot to the specs that is not in the XML files, never mind the stuff that we want to add to the project that the spec does not cover. We need to manage the complexity to ensure that we get good coverage of all the components. > With respect to running Tomcat embedded or as you say even simpler > Jetty, I know that is is not a big thing. The only thing I'm saying is > that we need to focus and put priority on the main scenarios that we > want to support. As far as I know the main scenario that we want to > support at the moment is running Tuscany on top of an existing/regular > Tomcat installation, so we should focus our efforts on that scenario. If > we want to change direction in terms of architecture and instead focus > on running Tomcat or Jetty inside Tuscany, then fine , at some point we > can have an architecture discussion on this subject and determine > why/if/when we ever want to do that. We're not talking about that here - we're talking about embedding Tomcat in JUnit so that we can quickly build/reconfigure the test environment to give better coverage when testing the Tuscany code. It would be a good idea though. > > In the meantime I feel that running Jetty embedded in Tuscany with > made-up models constructed in memory from Java code is a little ... > disconnected... from our main goal, which is to run with SCDL files, > with Tuscany running on top of Tomcat. > The goal in testing is coverage to make sure the code works as expected for all scenarios not just one. -- Jeremy
