You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by kl...@apache.org on 2015/09/25 00:37:10 UTC

incubator-geode git commit: Use categories in distributedTest target.

Repository: incubator-geode
Updated Branches:
  refs/heads/feature/GEODE-217 eb9e4d7fb -> 3428240f8


Use categories in distributedTest target.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/3428240f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/3428240f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/3428240f

Branch: refs/heads/feature/GEODE-217
Commit: 3428240f8ece6ca4ffd36747f3e087b3eced1123
Parents: eb9e4d7
Author: Kirk Lund <kl...@pivotal.io>
Authored: Thu Sep 24 15:36:36 2015 -0700
Committer: Kirk Lund <kl...@pivotal.io>
Committed: Thu Sep 24 15:36:36 2015 -0700

----------------------------------------------------------------------
 build.gradle | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/3428240f/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 7b375f8..0c24db9 100755
--- a/build.gradle
+++ b/build.gradle
@@ -345,17 +345,27 @@ subprojects {
   task distributedTest(type:Test) {
     include '**/*DUnitTest.class'
     
-// TODO add @Category(DistributedTest.class) to dunit tests
-//    useJUnit {
-//      excludeCategories 'com.gemstone.gemfire.test.junit.categories.UnitTest'
-//      excludeCategories 'com.gemstone.gemfire.test.junit.categories.IntegrationTest'
-//      includeCategories 'com.gemstone.gemfire.test.junit.categories.DistributedTest'
-//    }    
+    // exclde all categories so that dunitTest task is only task executing categorized dunit tests
+    useJUnit {
+      excludeCategories 'com.gemstone.gemfire.test.junit.categories.UnitTest'
+      excludeCategories 'com.gemstone.gemfire.test.junit.categories.IntegrationTest'
+      excludeCategories 'com.gemstone.gemfire.test.junit.categories.DistributedTest'
+    }    
     
     //I'm hoping this might deal with SOME OOMEs I've seen
     forkEvery 30
   }
   
+  task dunitTest(type:Test) {
+    include '**/*DUnitTest.class'
+    
+    useJUnit {
+      excludeCategories 'com.gemstone.gemfire.test.junit.categories.UnitTest'
+      excludeCategories 'com.gemstone.gemfire.test.junit.categories.IntegrationTest'
+      includeCategories 'com.gemstone.gemfire.test.junit.categories.DistributedTest'
+    }    
+  }
+  
   // apply common test configuration
   gradle.taskGraph.whenReady( { graph ->
     tasks.withType(Test).each { test ->