On Thursday 10 April 2008 11:54:30 pm Andrea Aime wrote: > Justin Deoliveira ha scritto: > > Well you know me... i am a sucker for pretty looking code. But testng > > not playing nice with surefire seems like a bit of a blocker. So that > > leaves us with Junit3 or Junit4. > > Yeah... well, the thing is, if you choose the right testng it works > with surefire, but it tends to lag behind the released versions of > testng (works with 5.1, but latest is 5.5 or something like that). > > And of course there is the "mixing tests" issue, thought I may > be due to the fact that one of my juni3 classes defines a suite() method. > > > Question: will we be able to do the setup in the base class alone? Or is > > this something that individual tests will need to know about? > > No, unfortunately it's not possible. With junit4 I did not manage to > get it fully working (one time tear down I cannot define, so the > subclass would have to manually invoke it), with junit3 you have > to define that suite() method and the comment it out each time > you have to run a single test (otherwise due to the suite() method > being there, you end up running them all anyways). here is where I'm getting lost. I can swear I can run a single test case from ArcSdeDataStoreTest inside eclipse, even if it uses the junit3 "static suite() returns wrapper" approach, since suite() is not called at all when running a single test from inside eclipse, I just need to check in the normal setUp() if the one time setup initialization was done and if not just call it.
> > So yeah, so far an unsatisfactory situation. I'm hoping Gabriel, > by the power of the unit testing book he ate, will find a better > solution. If the above does not work I'm out of ideas, but I still don't understand why it doesnt. Anyways, I'll give a try at the examples you sent tomorrow morning and we can talk in real time. cheers, Gabriel > > Cheers > Andrea > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java >one _______________________________________________ > Geoserver-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-devel > > !DSPAM:4045,47fe8cab300815409313003! ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
