From f8a835dc97431ed2ec5f10603af1a396e214e039 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Tue, 20 Sep 2016 17:23:53 +0300 Subject: [PATCH] junit: include in rerun tests from dependant modules if initial configuration was configured on module with dependencies (IDEA-161400) --- .../src/com/intellij/execution/junit/TestMethods.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/junit/src/com/intellij/execution/junit/TestMethods.java b/plugins/junit/src/com/intellij/execution/junit/TestMethods.java index a730edc5cb41..ad3db575e52e 100644 --- a/plugins/junit/src/com/intellij/execution/junit/TestMethods.java +++ b/plugins/junit/src/com/intellij/execution/junit/TestMethods.java @@ -67,6 +67,13 @@ public class TestMethods extends TestMethod { return javaParameters; } + @Nullable + @Override + public SourceScope getSourceScope() { + final JUnitConfiguration.Data data = getConfiguration().getPersistentData(); + return data.getScope().getSourceScope(getConfiguration()); + } + @Override protected boolean configureByModule(Module module) { return super.configureByModule(module) && getConfiguration().getPersistentData().getScope() != TestSearchScope.WHOLE_PROJECT;