Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » JUnit Plug-In Test is run over and over again
JUnit Plug-In Test is run over and over again [message #1755724] Tue, 07 March 2017 04:03 Go to next message
Eclipse UserFriend


I have a strange problem: I am trying to run a JUnit test as a JUnit plug-in test.

My test can be as simple as this:

public class FooTest {

    @Test
    public void testSomething() {
        assertThat("6 * 7 is 42", 6 * 7, equalTo(42));
    }
}


when I right-click it and select Run As / JUnit Plug-In Test the test runs (and also succeeds and the success is shown in the JUnit view), but after exiting, it is started again, and again, and again...

What is going wrong here?
Re: JUnit Plug-In Test is run over and over again [message #1757894 is a reply to message #1755724] Tue, 21 March 2017 09:01 Go to previous message
Eclipse UserFriend
*bump* I made three discoveries:

1. I changed my test bundles to be plugins instead of fragments, and for most of them, the strange behavior disappeared.
2. As soon as a dependency on org.eclipse.swt and/or org.eclipse.jface creeps in, the behavior reappears.
3. This only starts to appear as soon as Scala IDE is installed.

So I guess this has to do with Scala IDE, I'll report this in their forum.

[Updated on: Tue, 21 March 2017 09:09] by Moderator

Previous Topic:Only add JREContainerEntry when not yet set
Next Topic:Importing Cordova 6.1.2-Project to Eclipse: cordovalib.jar missing in Android Dependencies
Goto Forum:
  


Current Time: Fri Nov 07 20:53:41 EST 2025

Powered by FUDForum. Page generated in 0.03827 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top