Running a JUnit4 test - from a java program

Posted by markovuksanovic on Stack Overflow See other posts from Stack Overflow or by markovuksanovic
Published on 2010-04-19T06:15:16Z Indexed on 2010/04/19 7:23 UTC
Read the original article Hit count: 553

Filed under:
|
|

I was wondering how to run some JUnit4 test inside a java program. Basically - depending on some conditions during runtime I need to decide which test runner to use. Using Junit3 I could override runTest method from TestCase class - but in JUnit4 tests do not extend TestCase class so I have nothing to override... Is there maybe some method that I need to implement... or sth else...

© Stack Overflow or respective owner

Related posts about junit

Related posts about junit4