Skip to content

Commit

Permalink
Enhanced log IT classes
Browse files Browse the repository at this point in the history
  • Loading branch information
seregamorph committed Dec 22, 2024
1 parent 620474d commit 86e9ede
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
Expand Down Expand Up @@ -226,8 +227,14 @@ private void printSuiteTestsPerConfig(List<List<Class<?>>> sortedConfigToTests)
"(" + sortedConfigToTests.size() + " groups):");
pw.println("------");
sortedConfigToTests.forEach(itClasses -> {
for (Class<?> itClass : itClasses) {
pw.println(itClass.getName());
boolean isFirst = true;
for (Iterator<Class<?>> it = itClasses.iterator(); it.hasNext(); ) {
Class<?> itClass = it.next();
boolean isLast = !it.hasNext();
String suffix = isFirst && isLast ? " (creates and closes context)"
: isFirst ? " (creates context)" : isLast ? " (closes context)" : "";
pw.println(itClass.getName() + suffix);
isFirst = false;
}
pw.println("------");
});
Expand Down

0 comments on commit 86e9ede

Please sign in to comment.