Skip to content

Commit 1c71124

Browse files
committed
#467 Upgraded marklogic-unit-test dependency to 1.0.beta
1 parent d40d5db commit 1c71124

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

examples/unit-test-project/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include this by default (not every ml-gradle user will use marklogic-unit-test),
1212
jcenter()
1313
}
1414
dependencies {
15-
classpath "com.marklogic:marklogic-unit-test-client:0.12.0"
15+
classpath "com.marklogic:marklogic-unit-test-client:1.0.beta"
1616
}
1717
}
1818

@@ -24,7 +24,7 @@ is a feature of ml-gradle for depending on packages of MarkLogic modules):
2424
}
2525
2626
dependencies {
27-
mlBundle "com.marklogic:marklogic-unit-test-modules:0.12.0"
27+
mlBundle "com.marklogic:marklogic-unit-test-modules:1.0.beta"
2828
}
2929

3030
## Running unit tests

examples/unit-test-project/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
mlGradleVersion=3.10.0
2-
marklogicUnitTestVersion=0.12.0
1+
mlGradleVersion=3.15.0
2+
marklogicUnitTestVersion=1.0.beta
33

44
mlHost=localhost
55
mlAppName=unit-test-example

examples/unit-test-project/src/test/ml-modules/root/test/suites/My Tests/example-failing-tests.xqy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import module namespace example = "example" at "/example-lib.xqy";
2-
import module namespace test = "http://marklogic.com/roxy/test-helper" at "/test/test-helper.xqy";
2+
import module namespace test = "http://marklogic.com/test" at "/test/test-helper.xqy";
33

44
(:
55
This test fails on purpose so that a failing test can be demonstrated
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import module namespace example = "example" at "/example-lib.xqy";
2-
import module namespace test = "http://marklogic.com/roxy/test-helper" at "/test/test-helper.xqy";
2+
import module namespace test = "http://marklogic.com/test" at "/test/test-helper.xqy";
33

44
test:assert-equal("You said: hello", example:echo("hello"))

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ javadocsDir=../gh-pages-marklogic-java/javadocs
55
mlAppDeployerDependency=com.marklogic:ml-app-deployer:3.14.0
66
mlcpUtilDependency=com.marklogic:mlcp-util:0.9.0
77
mlDataMovementDependency=com.marklogic:marklogic-data-movement-components:1.2.0
8-
mlUnitTestDependency=com.marklogic:marklogic-unit-test-client:0.12.0
8+
mlUnitTestDependency=com.marklogic:marklogic-unit-test-client:1.0.beta
9+

src/main/groovy/com/marklogic/gradle/task/test/GenerateUnitTestSuiteTask.groovy

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class GenerateUnitTestSuiteTask extends MarkLogicTask {
88
static String getSampleTestsXqy() {
99
return """xquery version '1.0-ml';
1010
11-
import module namespace test = 'http://marklogic.com/roxy/test-helper' at '/test/test-helper.xqy';
11+
import module namespace test = 'http://marklogic.com/test' at '/test/test-helper.xqy';
1212
1313
test:assert-true(fn:true()),
1414
test:log("\$testName COMPLETE....")"""
@@ -17,7 +17,7 @@ test:log("\$testName COMPLETE....")"""
1717
static String getSetupXqy() {
1818
return """xquery version '1.0-ml';
1919
20-
import module namespace test = 'http://marklogic.com/roxy/test-helper' at '/test/test-helper.xqy';
20+
import module namespace test = 'http://marklogic.com/test' at '/test/test-helper.xqy';
2121
2222
(:
2323
This module will be run before each test in your suite.
@@ -31,7 +31,7 @@ test:log("\$testName Setup COMPLETE....")"""
3131
static String getTeardownXqy() {
3232
return """xquery version '1.0-ml';
3333
34-
import module namespace test = 'http://marklogic.com/roxy/test-helper' at '/test/test-helper.xqy';
34+
import module namespace test = 'http://marklogic.com/test' at '/test/test-helper.xqy';
3535
3636
(:
3737
This module will run after each test in your suite.
@@ -44,7 +44,7 @@ test:log("\$testName Teardown COMPLETE....")"""
4444
static String getSuiteSetupXqy() {
4545
return """xquery version '1.0-ml';
4646
47-
import module namespace test = 'http://marklogic.com/roxy/test-helper' at '/test/test-helper.xqy';
47+
import module namespace test = 'http://marklogic.com/test' at '/test/test-helper.xqy';
4848
4949
(:
5050
Runs once when your suite is started.
@@ -57,7 +57,7 @@ test:log("\$suiteName Suite Setup COMPLETE....")"""
5757
static String getSuiteTeardownXqy() {
5858
return """xquery version '1.0-ml';
5959
60-
import module namespace test = 'http://marklogic.com/roxy/test-helper' at '/test/test-helper.xqy';
60+
import module namespace test = 'http://marklogic.com/test' at '/test/test-helper.xqy';
6161
6262
(:
6363
Runs once when your suite is finished, to clean up after the suite's tests.

0 commit comments

Comments
 (0)