@@ -9,22 +9,22 @@ include this by default (not every ml-gradle user will use marklogic-unit-test),
99
1010 buildscript {
1111 repositories {
12- jcenter ()
12+ mavenCentral ()
1313 }
1414 dependencies {
15- classpath "com.marklogic:marklogic-unit-test-client:1.0 .0"
15+ classpath "com.marklogic:marklogic-unit-test-client:1.1 .0"
1616 }
1717 }
1818
1919Next, the marklogic-unit-test framework is depended on and installed as an "mlBundle" dependency (the "mlBundle" configuration
2020is a feature of ml-gradle for depending on packages of MarkLogic modules):
2121
2222 repositories {
23- jcenter ()
23+ mavenCentral ()
2424 }
2525
2626 dependencies {
27- mlBundle "com.marklogic:marklogic-unit-test-modules:1.0 .0"
27+ mlBundle "com.marklogic:marklogic-unit-test-modules:1.1 .0"
2828 }
2929
3030## Running unit tests
@@ -34,32 +34,35 @@ determine which MarkLogic app server to connect to - see below for how to custom
3434
3535First, deploy the application:
3636
37- gradle mlDeploy
37+ ./gradlew mlDeploy
3838
3939This will deploy the application along with the marklogic-unit-test modules.
4040
4141Then, run the tests:
4242
43- gradle mlUnitTest
43+ ./gradlew mlUnitTest
4444
4545Two tests are run, and one should fail, so you can see what a failed test looks like.
4646
4747This project includes the Gradle Java plugin, which allows you to run tests under src/test/java. This project includes
48- an example of a JUnit Parameterized test that invokes each marklogic-unit-test module separately - you can try it like this:
48+ an example of a test that invokes each marklogic-unit-test module separately - you can try it like this:
4949
50- gradle test
50+ ./gradlew test
5151
52- Again, two tests will run, and one will intentionally fail. The Parameterized test can be run in an IDE as well, allowing
53- you to take advantage of your IDE's support for JUnit tests.
52+ Again, two tests will run, and one will intentionally fail. The test can be run in an IDE as well, allowing
53+ you to take advantage of your IDE's support for JUnit tests. The test depends on the marklogic-junit5 library from the
54+ marklogic-unit-test project. This library provides support for writing JUnit 5 tests, including running all of your
55+ marklogic-unit-test modules. See [ the marklogic-junit5 project] ( https://github.com/marklogic-community/marklogic-unit-test/tree/master/marklogic-junit5 )
56+ for more information.
5457
5558You can also access the marklogic-unit-test REST endpoints directly:
5659
57- - List the tests - http://localhost:8135 /v1/resources/marklogic-unit-test
58- - Run a test suite - http://localhost:8135 /v1/resources/marklogic-unit-test?rs:func=run&rs:suite=My%20Tests
60+ - List the tests - http://localhost:8015 /v1/resources/marklogic-unit-test
61+ - Run a test suite - http://localhost:8015 /v1/resources/marklogic-unit-test?rs:func=run&rs:suite=My%20Tests
5962
6063And you can run the original UI test runner by going to:
6164
62- - http://localhost:8135 /test/default.xqy
65+ - http://localhost:8015 /test/default.xqy
6366
6467## Configuring which server mlUnitTest connects to
6568
0 commit comments