eclipse-jdt / eclipse.jdt.ui

Eclipse Public License 2.0
35 stars 86 forks source link

Add UI to select if JUnit3/4 should be enabled for JUnit Platform #1433

Open laeubi opened 2 months ago

laeubi commented 2 months ago

Currently one needs to edit the classpath directly what is a bit inconvenient.

This adds a new checkbox displayed in case Junit 5 is used that allows the user to choose if Junit3/4 compatibility layer (aka vintage engine) should be used.

Contributes to:

This is how the dialog looks like: grafik

carstenartur commented 1 month ago

Keep in mind that currently the dependency to junit 3 is hardcoded in jdt ui. Without the junit 3 class "junit.framework.Test" in the classpath some extentions are not activated. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=570024

Lookup in plugin.xml of org.eclipse.jdt.junit