-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathbuild.gradle
More file actions
executable file
·72 lines (63 loc) · 3.06 KB
/
build.gradle
File metadata and controls
executable file
·72 lines (63 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
* Copyright (c) 2010-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
*/
test {
useJUnitPlatform()
testLogging{
events 'started','passed', 'skipped'
}
// For use in testing TestDatabaseClientKerberosFromFile
systemProperty "keytabFile", System.getProperty("keytabFile")
systemProperty "principal", System.getProperty("principal")
systemProperty "TEST_USE_REVERSE_PROXY_SERVER", testUseReverseProxyServer
}
dependencies {
testImplementation project(':marklogic-client-api')
testImplementation 'org.skyscreamer:jsonassert:1.5.3'
testImplementation 'org.slf4j:slf4j-api:2.0.17'
testImplementation 'commons-io:commons-io:2.17.0'
testImplementation 'com.squareup.okhttp3:okhttp:4.12.0'
testImplementation "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
testImplementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
testImplementation "org.jdom:jdom2:2.0.6.1"
testImplementation 'org.apache.commons:commons-lang3:3.18.0'
// Allows talking to the Manage API.
testImplementation("com.marklogic:ml-app-deployer:5.0.0") {
exclude module: "marklogic-client-api"
// Use the commons-lang3 declared above to keep Black Duck happy.
exclude module: "commons-lang3"
}
testImplementation 'ch.qos.logback:logback-classic:1.3.15'
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.1'
testImplementation 'org.xmlunit:xmlunit-legacy:2.10.0'
}
tasks.register("runFragileTests", Test) {
useJUnitPlatform()
description = "These are called 'fragile' because they'll pass when run by themselves, but when run as part of the " +
"full suite, there seem to be one or more other fast functional tests that run before them and cause some of " +
"their test methods to break. The Jenkinsfile thus calls these first before running the other functional " +
"tests."
include "com/marklogic/client/fastfunctest/TestQueryOptionBuilder.class"
include "com/marklogic/client/fastfunctest/TestRawCombinedQuery.class"
include "com/marklogic/client/fastfunctest/TestRawStructuredQuery.class"
}
tasks.register("runFastFunctionalTests", Test) {
useJUnitPlatform()
description = "Run all fast functional tests that don't setup/teardown custom app servers / databases"
include "com/marklogic/client/fastfunctest/**"
// Exclude the "fragile" ones
exclude "com/marklogic/client/fastfunctest/TestQueryOptionBuilder.class"
exclude "com/marklogic/client/fastfunctest/TestRawCombinedQuery.class"
exclude "com/marklogic/client/fastfunctest/TestRawStructuredQuery.class"
}
tasks.register("runSlowFunctionalTests", Test) {
useJUnitPlatform()
description = "Run slow functional tests; i.e. those that setup/teardown custom app servers / databases"
include "com/marklogic/client/datamovement/functionaltests/**"
include "com/marklogic/client/functionaltest/**"
}
tasks.register("runFunctionalTests") {
dependsOn(runFragileTests, runFastFunctionalTests, runSlowFunctionalTests)
}
runFastFunctionalTests.mustRunAfter runFragileTests
runSlowFunctionalTests.mustRunAfter runFastFunctionalTests