use of com.intellij.execution.junit.TestClassFilter in project android by JetBrains.
the class AndroidTestsPattern method getClassFilter.
@Override
protected TestClassFilter getClassFilter(JUnitConfiguration.Data data) throws CantRunException {
TestClassFilter classFilter = super.getClassFilter(data);
JUnitConfiguration configuration = getConfiguration();
Module[] modules = configuration instanceof AndroidJUnitConfiguration ? ((AndroidJUnitConfiguration) configuration).getModulesToCompile() : configuration.getModules();
for (Module module : modules) {
TestArtifactSearchScopes testArtifactSearchScopes = TestArtifactSearchScopes.get(module);
if (testArtifactSearchScopes != null) {
classFilter = classFilter.intersectionWith(testArtifactSearchScopes.getAndroidTestExcludeScope());
}
}
return classFilter;
}
use of com.intellij.execution.junit.TestClassFilter in project android by JetBrains.
the class AndroidTestPackage method getClassFilter.
@Override
@VisibleForTesting
public TestClassFilter getClassFilter(JUnitConfiguration.Data data) throws CantRunException {
TestClassFilter classFilter = super.getClassFilter(data);
JUnitConfiguration configuration = getConfiguration();
Module[] modules = configuration instanceof AndroidJUnitConfiguration ? ((AndroidJUnitConfiguration) configuration).getModulesToCompile() : configuration.getModules();
for (Module module : modules) {
TestArtifactSearchScopes testArtifactSearchScopes = TestArtifactSearchScopes.get(module);
if (testArtifactSearchScopes != null) {
classFilter = classFilter.intersectionWith(testArtifactSearchScopes.getAndroidTestExcludeScope());
}
}
return classFilter;
}
Aggregations