2
2
* Copyright (c) 2010-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
3
3
*/
4
4
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
-
13
5
dependencies {
14
6
testImplementation project(' :marklogic-client-api' )
15
7
testImplementation " jakarta.xml.bind:jakarta.xml.bind-api:4.0.4"
@@ -37,20 +29,30 @@ dependencies {
37
29
testRuntimeOnly " org.junit.platform:junit-platform-launcher:1.13.4"
38
30
}
39
31
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
+
40
40
tasks. register(" runFragileTests" , Test ) {
41
- useJUnitPlatform()
42
41
description = " These are called 'fragile' because they'll pass when run by themselves, but when run as part of the " +
43
42
" full suite, there seem to be one or more other fast functional tests that run before them and cause some of " +
44
43
" their test methods to break. The Jenkinsfile thus calls these first before running the other functional " +
45
44
" tests."
45
+ testClassesDirs = sourceSets. test. output. classesDirs
46
+ classpath = sourceSets. test. runtimeClasspath
46
47
include " com/marklogic/client/fastfunctest/TestQueryOptionBuilder.class"
47
48
include " com/marklogic/client/fastfunctest/TestRawCombinedQuery.class"
48
49
include " com/marklogic/client/fastfunctest/TestRawStructuredQuery.class"
49
50
}
50
51
51
52
tasks. register(" runFastFunctionalTests" , Test ) {
52
- useJUnitPlatform()
53
53
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
54
56
include " com/marklogic/client/fastfunctest/**"
55
57
// Exclude the "fragile" ones
56
58
exclude " com/marklogic/client/fastfunctest/TestQueryOptionBuilder.class"
@@ -59,8 +61,9 @@ tasks.register("runFastFunctionalTests", Test) {
59
61
}
60
62
61
63
tasks. register(" runSlowFunctionalTests" , Test ) {
62
- useJUnitPlatform()
63
64
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
64
67
include " com/marklogic/client/datamovement/functionaltests/**"
65
68
include " com/marklogic/client/functionaltest/**"
66
69
}
0 commit comments