InterSystems IRIS Data Platform %UnitTest Tutorial
InterSystems IRIS provides the %UnitTest
package of classes for unit testing your applications. The package provides facilities for quickly developing unit test classes, executing the tests, and creating reports. You can either use the package directly or extend its classes to customize your unit testing tools. %UnitTest
is structurally very similar to the xUnit
frameworks for unit testing. Developers familiar with these frameworks will have an especially easy time using %UnitTest
This tutorial provides a fast-paced, hands-on introduction to the %UnitTest
package. Parts I and II of this tutorial are independent of each other and can be completed in any order.
Complete Part I
of the tutorial to learn about the differences between unit tests and integration tests, the structural similarities between the xUnit
frameworks and %UnitTest
, as well as the role of unit testing in Agile approaches to application development.
Complete Part II
of the tutorial to learn how to use the classes in %UnitTest
to create and execute unit tests for your InterSystems IRIS applications.
This tutorial assumes a basic familiarity with ObjectScript and object-oriented development with InterSystems IRIS Data Platform. To learn more about ObjectScript, read the ObjectScript Tutorial
. To learn more about object-oriented development with InterSystems IRIS, read Using Objects