RE: JUnit – Test Runner class

Hi Team,

I really appreciate the way this site manages content. It is so detail and helpful.
Great work guys. Keep going.

Am new to JUnit and my question may (or) may not make sense, but still will ask

What is the advantage of using Test Runner class while it executes all the tests of only one class which we can do by directly running that particular class??

Thanks in advance for your clarification

Best Regards,

wini Default Asked on November 24, 2015 in Program QA Automation.
Add Comment
1 Answers

Test runner can execute many classes as well. The main reason why you would want to have a test runner is to have your custom logic to pick test cases/classes to run.

JUnitCore.runClasses can accept many classes separated by comma.


Professor Answered on November 25, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.