Skip to main content

Unit Testing with %UnitTest

Part II of this tutorial provides an introduction to unit testing InterSystems IRIS code using the %UnitTest package. After completing this part of the tutorial, you will be able to:

  • Explain the roles of the three primary classes in the %UnitTest package.

  • List the requirements for unit test classes and methods based on the %UnitTest package.

  • Create and execute unit tests for a method.

  • Navigate the test reports created by %UnitTest.ManagerOpens in a new tab.

  • Use %UnitTest.TestCaseOpens in a new tab methods to initialize and restore database data while executing unit tests.

FeedbackOpens in a new tab