JUnit Question:

Download Job Interview Questions and Answers PDF

How to Run a JUnit Test Case in Eclipse?

JUnit Interview Question
JUnit Interview Question

Answer:

There are three ways to run JUnit Test Cases or Test Suites in Eclipse with JUnit plugin: org.junit_3.8.1.

1. You can right click on the test case class or test suite class and select Run As > JUnit Test.

2. You can select a test case or suite and click the arrow on the icon or select Run from the toolbar, and select Run As > JUnit Test.

3. You can select a test case or suite and click the arrow on the icon or select Run from the toolbar, and select Run... From here you will create a new JUnit test configuration, and name it. You can choose to run a single test case, or run all test cases in a project or folder.

Download JUnit Interview Questions And Answers PDF

Previous QuestionNext Question
Can You Describe Steps of Creating Test Case Classes in Eclipse?How To Create Test Class in Eclipse?