mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
junit repeat test: ensure grouping when repeated run (IDEA-155409)
This commit is contained in:
@@ -35,7 +35,7 @@ public class JUnit4IdeaTestRunner implements IdeaTestRunner {
|
||||
private RunListener myTestsListener;
|
||||
private OutputObjectRegistry myRegistry;
|
||||
|
||||
public int startRunnerWithArgs(String[] args, ArrayList listeners, String name, int count, boolean sendTree) {
|
||||
public int startRunnerWithArgs(String[] args, ArrayList listeners, String name, int count, final boolean sendTree) {
|
||||
try {
|
||||
Result result;
|
||||
if (count == 1) {
|
||||
@@ -53,7 +53,6 @@ public class JUnit4IdeaTestRunner implements IdeaTestRunner {
|
||||
if (result == null) {
|
||||
return -1;
|
||||
}
|
||||
sendTree = false;
|
||||
success &= result.wasSuccessful();
|
||||
}
|
||||
|
||||
@@ -66,7 +65,6 @@ public class JUnit4IdeaTestRunner implements IdeaTestRunner {
|
||||
if (result == null) {
|
||||
return -1;
|
||||
}
|
||||
sendTree = false;
|
||||
success &= result.wasSuccessful();
|
||||
if (count == -2 && !success) {
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user