diff --git a/java/execution/impl/src/com/intellij/execution/TestClassCollector.java b/java/execution/impl/src/com/intellij/execution/TestClassCollector.java index 60afa0cafc48..3c0bf8994631 100644 --- a/java/execution/impl/src/com/intellij/execution/TestClassCollector.java +++ b/java/execution/impl/src/com/intellij/execution/TestClassCollector.java @@ -59,6 +59,10 @@ public class TestClassCollector { Predicate> classPredicate = predicateProducer.apply(classLoader); while (resources.hasMoreElements()) { URL url = resources.nextElement(); + + //don't search for tests in jars + if ("jar".equals(url.getProtocol())) continue; + Path baseDir = Paths.get(url.toURI()); //collect tests under single module test output only