avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: Excalibur Junit
Date Wed, 22 Aug 2001 04:50:10 GMT
giacomo wrote:
> 
> > From the JUnit FAQ:
> > ----------------------------------------------------------------
> > Wrap the top level suite in a subclass of TestSetup.
> > Here is a sample AllTests.suite() method:
> >
> >     public static Test suite() {
> >       TestSuite suite= new TestSuite();
> >       ...add your tests and suites here...
> >       TestSetup wrapper= new TestSetup(suite) {
> >        public void setUp() {
> >         oneTimeSetUp();
> >        }
> >       };
> >       return wrapper;
> >     }
> 
> Yes, but with we are not using TestSuite under ANT, right?

Actually it works either way.  The TestRunner in the JUnit
Ant task will try to treat EVERY class in its fileset as a
Test.  That includes TestCase, TestSuite, and even inner classes
if you are not careful.  You can use TestDecorators, TestSuites,
whatever you want.

---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Mime
View raw message