marklogic-unit-test enables you to write and run automated tests for the custom JavaScript modules and XQuery modules that you can write and deploy to MarkLogic. Tests can be written in either JavaScript or XQuery and can test modules written in either language as well. By getting tests in place for your custom modules, you can speed up development of your MarkLogic applications and ensure that they can be changed as easily as possible as new requirements are introduced.
marklogic-unit-test includes the following components:
- A MarkLogic library module to help you write your test modules.
- A simple web interface for running tests.
- Java libraries for running your tests via JUnit5 and for integrating with other popular Java testing frameworks.
- A REST endpoint for integrating with testing frameworks in any language.
Please see the Getting started guide to learn how to include marklogic-unit-test in your project and to start writing and running tests.
If you have any questions or run into issues while using marklogic-unit-test, try one of the following:
- Check for a similar question on Stack Overflow.
- If you don’t find a similar question, ask one yourself.
- Or submit an issue; expect a response within a day or two.