chetanmeh commented on a change in pull request #3613: Split test jobs in Travis
URL: 
https://github.com/apache/incubator-openwhisk/pull/3613#discussion_r187909924
 
 

 ##########
 File path: tests/build.gradle
 ##########
 @@ -33,8 +34,70 @@ def leanExcludes = [
     '**/*WskCli*'
 ]
 
+ext.testSets = [
+    "REQUIRE_ONLY_DB" : [
+        "includes" : [
+            "actionContainers/**",
+            "ha/**",
+            "whisk/**"
+        ],
+        "excludes" : [
+            "whisk/core/admin/**",
+            "whisk/core/apigw/actions/test/**",
+            "whisk/core/cli/test/**",
+            "whisk/core/limits/**",
+            "**/*CacheConcurrencyTests*",
+            "**/*ControllerApiTests*",
+        ]
+    ],
+    "REQUIRE_SYSTEM" : [
+        "includes" : [
+            "apigw/healthtests/**",
+            "services/**",
+            "system/basic/**",
+            "system/rest/**",
+            "whisk/core/admin/**",
+            "whisk/core/cli/test/**",
+            "whisk/core/apigw/actions/test/**",
+            "whisk/core/limits/**",
+            "whisk/core/database/test/*CacheConcurrencyTests*",
+            "whisk/core/controller/test/*ControllerApiTests*",
+        ]
+    ],
+    "LEAN" : [
+        "excludes" : leanExcludes
+    ]
+]
+
+testSets.each {setName, patterns ->
+    def excludes = patterns["excludes"] ?: new HashSet<>()
+    excludes.addAll(leanExcludes)
+    patterns["excludes"] = excludes
+}
+
+//The value can be specified either via env variable
+// ORG_GRADLE_PROJECT_testSetName
+//Or via property -PtestSetName
+if (!project.hasProperty("testSetName")) {
 
 Review comment:
   This was a misleading log which was getting logged due to build task 
evaluation triggering print message to be logged. Despite this log all tests 
would have been run.
   
   This has been fixed now

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to