ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Ivanov <rambiusparkisan...@yahoo.com>
Subject Re: Choosing junit tests (again)
Date Fri, 24 Sep 2004 11:01:20 GMT
I do not know, whether this snippet will work. Most
probably yes. I have the habit in all my test case to
provide the default no-arg constructor and the
contructor with single argument - the name of the
test.

--- André Dantas Rocha <ad-rocha@uol.com.br> wrote:

> 
> One more question..
> 
> When using:
> 
> public class OneMethodTestSuite {
>   public static Test suite() {
>     TestSuite suite = new TestSuite();
>     suite.addTest(new MyTest("testMethodOne"));
>     return suite;
>   }
> }
> 
> MyTest is the class witch contains "testMethodOne"
> method? in this case have
> I to implement a MyTest(String) constructor?
> 
> Thanks again,
> 
> André
> 
> 
> 
> 
>  
> 
> -----Mensagem original-----
> De: Jan.Materne@rzf.fin-nrw.de
> [mailto:Jan.Materne@rzf.fin-nrw.de] 
> Enviada em: sexta-feira, 24 de setembro de 2004
> 07:19
> Para: user@ant.apache.org
> Assunto: AW: Choosing junit tests
> 
> yes ... but not directly ...
> 
> JUnit is not able to run only one testcase so Ant
> cant do that neither.
> BUT - you can create a test suite only running that
> one testcase.
> 
> Have found my earlier posting on JGuru :)
> http://www.jguru.com/forums/view.jsp?EID=1163524
> 
> Jan
> 
> > -----Ursprüngliche Nachricht-----
> > Von: André Dantas Rocha
> [mailto:ad-rocha@uol.com.br] Gesendet am: 
> > Freitag, 24. September 2004 12:14
> > An: user@ant.apache.org
> > Betreff: Choosing junit tests
> > 
> > Hi,
> >  
> > Is there a way to specify the junit tests to run?
> >  
> > Something like this:
> >  
> > public classe MyTestCase extends TestCase {
> >   public void testCase1 {}
> >   public void testCase2 {}
> >   public void testCase3 {}
> > }
> >  
> > I would like to run only testCase2 and testCase3.
> Is it possible?
> >  
> > Thanks,
> >  
> > André
> > 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message