| import org.apache.geode.gradle.TestPropertiesWriter |
| |
| /* |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| |
| subprojects { |
| task securityTest(type: Test) { |
| useJUnit { |
| includeCategories 'org.apache.geode.test.junit.categories.SecurityTest' |
| } |
| |
| forkEvery 1 |
| doFirst { |
| TestPropertiesWriter.writeTestProperties(buildDir, name) |
| } |
| |
| reports.junitXml.destination = file "$buildDir/test-reports-security" |
| } |
| |
| task clientServerTest(type: Test) { |
| useJUnit { |
| includeCategories 'org.apache.geode.test.junit.categories.ClientServerTest' |
| } |
| doFirst { |
| TestPropertiesWriter.writeTestProperties(buildDir, name) |
| } |
| reports.junitXml.destination = file "$buildDir/test-reports-security" |
| } |
| |
| task dlockTest(type: Test) { |
| useJUnit { |
| includeCategories 'org.apache.geode.test.junit.categories.DLockTest' |
| } |
| doFirst { |
| TestPropertiesWriter.writeTestProperties(buildDir, name) |
| } |
| reports.junitXml.destination = file "$buildDir/test-reports-dlock" |
| } |
| |
| task backwardCompatibilityTest(type: Test) { |
| useJUnit { |
| includeCategories 'org.apache.geode.test.junit.categories.BackwardCompatibilityTest' |
| } |
| doFirst { |
| TestPropertiesWriter.writeTestProperties(buildDir, name) |
| } |
| reports.junitXml.destination = file "$buildDir/test-reports-backwardcompatibility" |
| } |
| |
| task clientSubscriptionTest(type: Test) { |
| useJUnit { |
| includeCategories 'org.apache.geode.test.junit.categories.ClientSubscriptionTest' |
| } |
| doFirst { |
| TestPropertiesWriter.writeTestProperties(buildDir, name) |
| } |
| reports.junitXml.destination = file "$buildDir/test-reports-client-subscription" |
| } |
| task queryTest(type: Test) { |
| useJUnit { |
| includeCategories 'org.apache.geode.test.junit.categories.OQLQueryTest' |
| } |
| doFirst { |
| TestPropertiesWriter.writeTestProperties(buildDir, name) |
| } |
| reports.junitXml.destination = file "$buildDir/test-reports-oql-query" |
| } |
| |
| task indexTest(type: Test) { |
| useJUnit { |
| includeCategories 'org.apache.geode.test.junit.categories.OQLIndexTest' |
| } |
| doFirst { |
| TestPropertiesWriter.writeTestProperties(buildDir, name) |
| } |
| reports.junitXml.destination = file "$buildDir/test-reports-oql-index" |
| } |
| |
| task functionServiceTest(type: Test) { |
| useJUnit { |
| includeCategories 'org.apache.geode.test.junit.categories.FunctionServiceTest' |
| } |
| doFirst { |
| TestPropertiesWriter.writeTestProperties(buildDir, name) |
| } |
| reports.junitXml.destination = file "$buildDir/test-reports-function-service" |
| } |
| |
| task membershipTest(type: Test) { |
| useJUnit { |
| includeCategories 'org.apache.geode.test.junit.categories.MembershipTest' |
| } |
| doFirst { |
| TestPropertiesWriter.writeTestProperties(buildDir, name) |
| } |
| reports.junitXml.destination = file "$buildDir/test-reports-membership" |
| } |
| task luceneTest(type: Test) { |
| useJUnit { |
| includeCategories 'org.apache.geode.test.junit.categories.LuceneTest' |
| } |
| doFirst { |
| TestPropertiesWriter.writeTestProperties(buildDir, name) |
| } |
| reports.junitXml.destination = file "$buildDir/test-reports-lucene" |
| } |
| |
| task aeqTest(type: Test) { |
| useJUnit { |
| includeCategories 'org.apache.geode.test.junit.categories.AEQTest' |
| } |
| doFirst { |
| TestPropertiesWriter.writeTestProperties(buildDir, name) |
| } |
| reports.junitXml.destination = file "$buildDir/test-reports-aeq" |
| } |
| |
| |
| task sessionTest(type: Test) { |
| useJUnit { |
| includeCategories 'org.apache.geode.test.junit.categories.SessionTest' |
| } |
| doFirst { |
| TestPropertiesWriter.writeTestProperties(buildDir, name) |
| } |
| reports.junitXml.destination = file "$buildDir/test-reports-session" |
| } |
| |
| task wanTest(type: Test) { |
| useJUnit { |
| includeCategories 'org.apache.geode.test.junit.categories.WanTest' |
| } |
| doFirst { |
| TestPropertiesWriter.writeTestProperties(buildDir, name) |
| } |
| reports.junitXml.destination = file "$buildDir/test-reports-wan" |
| } |
| |
| |
| task redisTest(type: Test) { |
| useJUnit { |
| includeCategories 'org.apache.geode.test.junit.categories.RedisTest' |
| } |
| doFirst { |
| TestPropertiesWriter.writeTestProperties(buildDir, name) |
| } |
| forkEvery 1 |
| reports.junitXml.destination = file "$buildDir/test-reports-redis" |
| } |
| |
| task restAPITest(type: Test) { |
| useJUnit { |
| includeCategories 'org.apache.geode.test.junit.categories.RestAPITest' |
| } |
| doFirst { |
| TestPropertiesWriter.writeTestProperties(buildDir, name) |
| } |
| forkEvery 1 |
| reports.junitXml.destination = file "$buildDir/test-reports-restAPI" |
| } |
| |
| task serializationTest(type: Test) { |
| useJUnit { |
| includeCategories 'org.apache.geode.test.junit.categories.SerializationTest' |
| } |
| doFirst { |
| TestPropertiesWriter.writeTestProperties(buildDir, name) |
| } |
| reports.junitXml.destination = file "$buildDir/test-reports-serialization" |
| } |
| } |