junit: include in rerun tests from dependant modules if initial configuration was configured on module with dependencies (IDEA-161400)

This commit is contained in:
Anna Kozlova
2016-09-20 17:26:25 +03:00
parent c89ba17d1d
commit f8a835dc97
@@ -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;