Skip to content

Commit

Permalink
minor change to matrix plugin to allow multiple sources for specifyin…
Browse files Browse the repository at this point in the history
…g to skip "matrix unit" test task generation
  • Loading branch information
sebersole committed Jan 25, 2012
1 parent 181496a commit 34c2fa4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,15 @@ public class MatrixTestingPlugin implements Plugin<Project> {
matrixTask.dependsOn( matrixNodeTask );
}

if ( !System.properties[SKIP_UNIT_TEST].equals('true') ) {
if ( ! shouldSkipMatrixTestsAgainstDefaultDb() ) {
createTestTaskForMatrixSourceSet();
}
}

private boolean shouldSkipMatrixTestsAgainstDefaultDb() {
return "true".equals( project.properties[SKIP_UNIT_TEST] ) || "true".equals( System.properties[SKIP_UNIT_TEST] );
}

private List<MatrixNode> locateMatrixNodes() {
List<MatrixNode> matrixNodes = new ArrayList<MatrixNode>();
Iterable<DatabaseProfile> profiles = project.rootProject.plugins[DatabaseProfilePlugin].databaseProfiles;
Expand Down

0 comments on commit 34c2fa4

Please sign in to comment.