add 'hibernate-matrix-skip-unittest' property to matrix plugin, which can be used to skip unit tests when running functional tests on DB matrix (to save some time)

This commit is contained in:
Strong Liu 2011-09-28 21:31:45 +08:00
parent e655163c24
commit 21ef67b12f
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,7 @@ public class MatrixTestingPlugin implements Plugin<Project> {
public static final String MATRIX_RUNTIME_CONFIG_NAME = "matrixRuntime";
public static final String MATRIX_TASK_NAME = "matrix";
public static final String MATRIX_SOURCE_SET_NAME = "matrix";
public static final String SKIP_UNIT_TEST = "hibernate-matrix-skip-unittest";
private Project project;
private Configuration matrixCompileConfig;
private Configuration matrixRuntimeConfig;
@ -75,6 +76,7 @@ public class MatrixTestingPlugin implements Plugin<Project> {
matrixTask.group = "Verification"
matrixTask.description = "Runs the unit tests on Database Matrix"
generateNodes();
if(!System.properties[SKIP_UNIT_TEST].equals('true'))
createTestTaskForMatrixSourceSet();
}