Unit Tests
OverviewUnit Tests
Unit testing within MarkLogic is possible using ml-unit-test. This course will cover the basics of unit testing and how to use ml-unit-test to create and run unit tests. We further cover how to extend the base functionality of ml-unit-test to create custom assertions, test in both server-side Javascript and xQuery.
We also extend the test to show how you can bootstrap your tests to create a more robust testing environment by running tests as specific users or roles in order to also cover negative testing with security.
Learning Objectives
- ml-unit-test basics
- Creating and running unit tests
- Extending OOTB ml-unit-test functionality with custom assertions and secrity related testing
- Sample integration with tooling
- Learning Objectives