From 557f6d3d680e9fafd117a8bf89646476ec99fcd2 Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Mon, 19 Apr 2010 16:15:27 +0400 Subject: [PATCH] do not test nothing having nothing to test --- platform/testFramework/src/com/intellij/TestAll.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/testFramework/src/com/intellij/TestAll.java b/platform/testFramework/src/com/intellij/TestAll.java index fee3e9e8aa59..54070163f886 100644 --- a/platform/testFramework/src/com/intellij/TestAll.java +++ b/platform/testFramework/src/com/intellij/TestAll.java @@ -351,7 +351,10 @@ public class TestAll implements Test { public TestAll(String packageRoot, String... classRoots) throws IOException, ClassNotFoundException { myTestCaseLoader = new TestCaseLoader((ourMode & FILTER_CLASSES) != 0 ? "tests/testGroups.properties" : ""); - myTestCaseLoader.addClassIfTestCase(Class.forName("_FirstInSuiteTest")); + + if (classRoots.length > 0) { + myTestCaseLoader.addClassIfTestCase(Class.forName("_FirstInSuiteTest")); + } for (String classRoot : classRoots) { ClassFinder classFinder = new ClassFinder(new File(classRoot), packageRoot); -- 2.32.0