Skip to content

Commit

Permalink
Prevent multiple execution of junit.runtime.tests and always clear WS
Browse files Browse the repository at this point in the history
Fixes #1360
  • Loading branch information
HannesWell committed Jul 31, 2024
1 parent a825840 commit 2ec27c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui/org.eclipse.pde.junit.runtime.tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<configuration>
<testClass>org.eclipse.pde.junit.runtime.tests.JUnitRuntimeTests</testClass>
<useUIHarness>true</useUIHarness>
<useUIThread>true</useUIThread>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,18 @@
import org.eclipse.jdt.junit.model.ITestElement;
import org.eclipse.jdt.junit.model.ITestElementContainer;
import org.eclipse.jdt.junit.model.ITestRunSession;
import org.eclipse.pde.ui.tests.util.ProjectUtils;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.Test;
import org.junit.rules.TestRule;

public class JUnit5SuiteExecutionTest {

@ClassRule
public static final TestRule CLEAR_WORKSPACE = ProjectUtils.DELETE_ALL_WORKSPACE_PROJECTS_BEFORE_AND_AFTER;

private static IJavaProject project;

@BeforeClass
Expand Down

0 comments on commit 2ec27c4

Please sign in to comment.