Prevent junit tests from running twice
<p>There are many similar questions to my questions,but there is no clear answer for it!
My tests are failing because they are running once inside suite and once alone. And I need them to run only once inside suite.
This is my suite:</p>

<pre><code>@RunWith(Suite.class)
@Suite.SuiteClasses({Test1.class, Test2.class})
{
.....
}
</code></pre>

<p>I am running the test from the command line with command <code>test</code>.</p>

<p>Has anyone found a solution for this?</p>