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). 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. 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/javaone _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
