junit 5: run tests by unique id (IDEA-169198; IDEA-179139)

This commit is contained in:
Anna.Kozlova
2017-10-10 13:20:00 +02:00
parent c27352531f
commit 216011c59b
16 changed files with 301 additions and 22 deletions
@@ -15,8 +15,8 @@
*/
package com.intellij.execution.actions;
import com.intellij.execution.testframework.AbstractTestProxy;
import com.intellij.execution.testframework.Filter;
import com.intellij.execution.testframework.JavaAwareFilter;
import com.intellij.execution.testframework.TestConsoleProperties;
import com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction;
import com.intellij.openapi.project.Project;
@@ -37,6 +37,11 @@ public class JavaRerunFailedTestsAction extends AbstractRerunFailedTestsAction {
@NotNull
@Override
protected Filter getFilter(@NotNull Project project, @NotNull GlobalSearchScope searchScope) {
return super.getFilter(project, searchScope).and(JavaAwareFilter.METHOD(project, searchScope));
return super.getFilter(project, searchScope).and(new Filter() {
@Override
public boolean shouldAccept(AbstractTestProxy test) {
return test.isLeaf();
}
});
}
}