ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Dantas Rocha <ad-ro...@uol.com.br>
Subject Choosing junit tests (again)
Date Fri, 24 Sep 2004 10:58:46 GMT

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


Mime
View raw message