diff --git a/common/source/java/ch/systemsx/cisd/common/db/SqlUnitTestRunner.java b/common/source/java/ch/systemsx/cisd/common/db/SqlUnitTestRunner.java index f92743817eb2f7be2e231b496382d70277702173..084dff7c5e2336582ac395ae1e7e7d2e828be076 100644 --- a/common/source/java/ch/systemsx/cisd/common/db/SqlUnitTestRunner.java +++ b/common/source/java/ch/systemsx/cisd/common/db/SqlUnitTestRunner.java @@ -45,6 +45,7 @@ import ch.systemsx.cisd.common.utilities.OSUtilities; * ... * ... * </pre> + * Folder starting with '.' or <code>migration</code> are ignored. * The test cases are executed in lexicographical order of their name. For each test case <code>buildup.sql</code> * will be executed first. The test scripts follow the naming schema * <pre> @@ -63,6 +64,9 @@ import ch.systemsx.cisd.common.utilities.OSUtilities; */ public class SqlUnitTestRunner { + /** Name of ignored migration folder. */ + public static final String MIGRATION_FOLDER = "migration"; + private static final class TestResult { private final boolean ok; @@ -135,7 +139,9 @@ public class SqlUnitTestRunner { public boolean accept(File pathname) { - return pathname.isDirectory() && pathname.getName().startsWith(".") == false; + String name = pathname.getName(); + return pathname.isDirectory() && name.startsWith(".") == false + && name.startsWith(MIGRATION_FOLDER) == false; } }); Arrays.sort(testCases);