Gabriel Roldán ha scritto:
> okay,
> to summarize:
> 1- we want non static one time setup and tear down
> 2- we want to be able to run a single test case from eclipse ui, but eclipse 
> does not cares and run all of the tests in the suite
> 3- we try to avoid switching to testNG, which would fill our expectations if 
> we choose the correct (outdated) version, but forces to get completely rid of 
> junit
> 4- we don't mind using Junit3 or Junit4 as long as it works
> 
> About 2), I found a reason, there's a bug in eclipse's Junit4 plugin when 
> running in Juni3 compatibility mode. If so, and you try to run a single test 
> case from a Junit3 test class, eclipse will run all the others and show them 
> under a tree node called "unrooted tests".
> 
> The solution (workaround) is to stick to Junit3 AND eclipse's Junit3 plugin. 
> This way it all works perfectly.
> 
> If nobody has a strong argument against that, that'd be it. Otherwise we're 
> all ears.

I've attached the latest version of that junit3 based thing.
Plan:
* have GeoServerAbstractTestSupport extend OneTimeSetupTest and
   implement the one time setup/teardown (any idea
   for a better name for the one time test supeclass? And no, I won't
   accept WWWTest as a candidate... no, TestWWW does not count either
   :) )
* change all tests setup/teardown to setupInternal/teardowninternal
* add the suite() method to the read only test classes

Hum, wondering... shall I roll up a GSIP or this set of mails
is enough?

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

Reply via email to