Jump to: navigation, search

JDT UI/JUnit 5

Eclipse beta support for JUnit 5

Steps to setup JUnit 5 support in Eclipse:

  • Open a new workspace and set API baseline in Preferences as Eclipse 4.6.3.
  • Clone the repository:

and import this project in your workspace: org.eclipse.jdt.junit5.runtime.

  • Copy the JARs from the cloned folder eclipse-junit5\JUnit-5-JARs to your Eclipse's "dropins" folder.
  • Clone the repository:

and checkout the BETA_JUNIT5 branch.

  • Import these projects in your workspace: org.eclipse.jdt.ui, org.eclipse.jdt.junit, org.eclipse.jdt.junit.core, org.eclipse.jdt.junit.runtime, org.eclipse.jdt.junit4.runtime.
  • Restart Eclipse. The workspace should not have any error now.

To try out the JUnit 5 support, use one of the following:

  • Go to File > Export... > Deployable plug-ins and fragments. Here, select all the imported plug-ins and choose "Install into host. Repository:" under "Destination". Click Finish. It will install these plug-ins into your Eclipse IDE. You can now exit this setup workspace. Open a new workspace with this Eclipse IDE and try out the JUnit 5 support in it.


  • Launch a runtime Eclipse application and try out the JUnit 5 support in the launched workspace.