mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
decoupling testRunner from idea-rt
This commit is contained in:
@@ -25,6 +25,8 @@ public interface AbstractTestProxy {
|
||||
|
||||
boolean isLeaf();
|
||||
|
||||
boolean isPassed();
|
||||
|
||||
String getName();
|
||||
|
||||
Location getLocation(final Project project);
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
package com.intellij.execution.testframework;
|
||||
|
||||
import com.intellij.rt.execution.junit.states.PoolOfTestStates;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
@@ -58,7 +56,7 @@ public abstract class Filter {
|
||||
|
||||
public static final Filter NOT_PASSED = new Filter() {
|
||||
public boolean shouldAccept(final AbstractTestProxy test) {
|
||||
return test.getMagnitude() > PoolOfTestStates.PASSED_INDEX;
|
||||
return !test.isPassed();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module" module-name="platform-api" />
|
||||
<orderEntry type="module" module-name="lang-impl" />
|
||||
<orderEntry type="module" module-name="idea_rt" />
|
||||
<orderEntry type="module" module-name="platform-impl" />
|
||||
</component>
|
||||
</module>
|
||||
|
||||
@@ -77,6 +77,10 @@ public class SMTestProxy extends CompositePrintable implements PrintableTestProx
|
||||
return myChildren == null || myChildren.isEmpty();
|
||||
}
|
||||
|
||||
public boolean isPassed() {
|
||||
return myState.getMagnitude() == TestStateInfo.Magnitude.SKIPPED_INDEX || myState.getMagnitude() != TestStateInfo.Magnitude.COMPLETE_INDEX;
|
||||
}
|
||||
|
||||
public void addChild(final SMTestProxy child) {
|
||||
if (myChildren == null) {
|
||||
myChildren = new ArrayList<SMTestProxy>();
|
||||
|
||||
Reference in New Issue
Block a user