22 * Copyright (c) 2010-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
33 */
44
5- test {
6- // For use in testing TestDatabaseClientKerberosFromFile
7- systemProperty " keytabFile" , System . getProperty(" keytabFile" )
8- systemProperty " principal" , System . getProperty(" principal" )
9-
10- systemProperty " TEST_USE_REVERSE_PROXY_SERVER" , testUseReverseProxyServer
11- }
12-
135dependencies {
146 testImplementation project(' :marklogic-client-api' )
157 testImplementation " jakarta.xml.bind:jakarta.xml.bind-api:4.0.4"
@@ -37,20 +29,30 @@ dependencies {
3729 testRuntimeOnly " org.junit.platform:junit-platform-launcher:1.13.4"
3830}
3931
32+ tasks. withType(Test ). configureEach {
33+ // For use in testing TestDatabaseClientKerberosFromFile
34+ systemProperty " keytabFile" , System . getProperty(" keytabFile" )
35+ systemProperty " principal" , System . getProperty(" principal" )
36+
37+ systemProperty " TEST_USE_REVERSE_PROXY_SERVER" , testUseReverseProxyServer
38+ }
39+
4040tasks. register(" runFragileTests" , Test ) {
41- useJUnitPlatform()
4241 description = " These are called 'fragile' because they'll pass when run by themselves, but when run as part of the " +
4342 " full suite, there seem to be one or more other fast functional tests that run before them and cause some of " +
4443 " their test methods to break. The Jenkinsfile thus calls these first before running the other functional " +
4544 " tests."
45+ testClassesDirs = sourceSets. test. output. classesDirs
46+ classpath = sourceSets. test. runtimeClasspath
4647 include " com/marklogic/client/fastfunctest/TestQueryOptionBuilder.class"
4748 include " com/marklogic/client/fastfunctest/TestRawCombinedQuery.class"
4849 include " com/marklogic/client/fastfunctest/TestRawStructuredQuery.class"
4950}
5051
5152tasks. register(" runFastFunctionalTests" , Test ) {
52- useJUnitPlatform()
5353 description = " Run all fast functional tests that don't setup/teardown custom app servers / databases"
54+ testClassesDirs = sourceSets. test. output. classesDirs
55+ classpath = sourceSets. test. runtimeClasspath
5456 include " com/marklogic/client/fastfunctest/**"
5557 // Exclude the "fragile" ones
5658 exclude " com/marklogic/client/fastfunctest/TestQueryOptionBuilder.class"
@@ -59,8 +61,9 @@ tasks.register("runFastFunctionalTests", Test) {
5961}
6062
6163tasks. register(" runSlowFunctionalTests" , Test ) {
62- useJUnitPlatform()
6364 description = " Run slow functional tests; i.e. those that setup/teardown custom app servers / databases"
65+ testClassesDirs = sourceSets. test. output. classesDirs
66+ classpath = sourceSets. test. runtimeClasspath
6467 include " com/marklogic/client/datamovement/functionaltests/**"
6568 include " com/marklogic/client/functionaltest/**"
6669}
0 commit comments