Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "JDT UI/JUnit 5"

(Steps to setup JUnit 5 support in Eclipse:)
(The content that follows is OUTDATED.)
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
= Eclipse beta support for JUnit 5 =
+
= Eclipse support for JUnit 5 is available from Eclipse Oxygen.1a (4.7.1a). =
  
== Steps to setup JUnit 5 support in Eclipse: ==
 
  
* Download the latest available [http://download.eclipse.org/eclipse/downloads/index.html Eclipse build] (currently, Eclipse Oxygen 4.7 M6 build).
+
= The content that follows is OUTDATED. Please do not refer to it. =
 +
 
 +
----
 +
 
 +
Check out the [https://marketplace.eclipse.org/content/junit-5-support-beta-oxygen Eclipse Marketplace] entry for details on JUnit 5 support in Eclipse.
 +
 
 +
== Eclipse build with JUnit 5.0.0 GA support: ==
 +
 
 +
* JUnit 5 support is now included in Eclipse Photon (4.8) builds. Try it out with the latest Integration build available [http://download.eclipse.org/eclipse/downloads/index.html here].
 +
 
 +
* Try out JUnit 5 support in Eclipse Oxygen.1 (4.7.1) using the latest U-build available [http://download.eclipse.org/eclipse/downloads/YIndex.php here].
 +
 
 +
* You can also update the [http://download.eclipse.org/eclipse/downloads/drops4/R-4.7-201706120950/ Eclipse 4.7] release build using this update site: http://download.eclipse.org/eclipse/updates/4.7-U-builds. In Eclipse, go to Help > Install New Software... and uncheck ''Group items by category''. Select '''Eclipse SDK''' from the list of items and proceed with the installation.
 +
 
 +
== Steps to do the code setup for JUnit 5.0.0 support in Eclipse: ==
 +
 
 +
* Download [http://download.eclipse.org/eclipse/downloads/drops4/R-4.7-201706120950/ Eclipse 4.7] release build.
  
 
* Open a new workspace and set API baseline in Preferences as [http://download.eclipse.org/eclipse/downloads/drops4/R-4.6.3-201703010400/ Eclipse 4.6.3].
 
* Open a new workspace and set API baseline in Preferences as [http://download.eclipse.org/eclipse/downloads/drops4/R-4.6.3-201703010400/ Eclipse 4.6.3].
Line 10: Line 25:
 
* Clone the repository:
 
* Clone the repository:
 
  https://github.com/noopur2507/eclipse-junit5.git
 
  https://github.com/noopur2507/eclipse-junit5.git
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.
+
* Copy the JARs (JUnit 5.0.0-RC2) from the cloned folder eclipse-junit5\JUnit-5-JARs to your Eclipse's "dropins" folder.
  
 
* Clone the repository:  
 
* Clone the repository:  
Line 18: Line 32:
 
and checkout the BETA_JUNIT5 branch.  
 
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.
+
* 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, org.eclipse.jdt.junit5.runtime.
  
 
* Restart Eclipse. The workspace should not have any error now.
 
* Restart Eclipse. The workspace should not have any error now.

Latest revision as of 05:41, 16 April 2018

Eclipse support for JUnit 5 is available from Eclipse Oxygen.1a (4.7.1a).

The content that follows is OUTDATED. Please do not refer to it.


Check out the Eclipse Marketplace entry for details on JUnit 5 support in Eclipse.

Eclipse build with JUnit 5.0.0 GA support:

  • JUnit 5 support is now included in Eclipse Photon (4.8) builds. Try it out with the latest Integration build available here.
  • Try out JUnit 5 support in Eclipse Oxygen.1 (4.7.1) using the latest U-build available here.

Steps to do the code setup for JUnit 5.0.0 support in Eclipse:

  • Open a new workspace and set API baseline in Preferences as Eclipse 4.6.3.
  • Clone the repository:
https://github.com/noopur2507/eclipse-junit5.git
  • Copy the JARs (JUnit 5.0.0-RC2) from the cloned folder eclipse-junit5\JUnit-5-JARs to your Eclipse's "dropins" folder.
  • Clone the repository:
git://git.eclipse.org/gitroot/jdt/eclipse.jdt.ui.git 

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, org.eclipse.jdt.junit5.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.

Or,

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

Back to the top