The %UnitTest Framework for InterSystems IRIS

Create and execute xUnit-style unit tests for InterSystems IRIS applications.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/sorodriguezz/skills-objectscript --skill the-unittest-framework-for-intersystems-iris
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: The %UnitTest Framework for InterSystems IRIS
Source: https://github.com/sorodriguezz/skills-objectscript/tree/main/skills/the-unit-test-framework-for-intersystems-iris
Command: npx skills add https://github.com/sorodriguezz/skills-objectscript --skill the-unittest-framework-for-intersystems-iris

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a robust framework for writing and executing unit tests within the InterSystems IRIS environment, ensuring code quality and reliability.

Core Features & Use Cases

  • Test Case Creation: Define tests by extending the %UnitTest.TestCase class.
  • Automated Execution: Run tests using the %UnitTest.Manager class.
  • Detailed Reporting: View test results in the console or via a web interface in the Management Portal.
  • Use Case: Developers can ensure their custom IRIS classes function as expected by creating automated tests that verify method outputs and system states.

Quick Start

Use the the-unit-test-framework-for-intersystems-iris skill to run tests defined in the 'MyTests' class.

Frequently Asked Questions about The %UnitTest Framework for InterSystems IRIS

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate unit testing for InterSystems IRIS applications?

You can automate unit testing for InterSystems IRIS by extending the %UnitTest.TestCase class to define test cases and executing them with the %UnitTest.Manager class. This framework supports xUnit-style testing with preparation, cleanup, and assertion macros.

How do I view unit test execution results in InterSystems IRIS?

Unit test execution results for InterSystems IRIS can be viewed directly in the console or via a web interface in the Management Portal. The framework generates detailed reports to help developers analyze code validation outcomes and system states.

Does InterSystems IRIS support xUnit-style testing with setup and teardown methods?

Yes, InterSystems IRIS supports xUnit-style testing through its %UnitTest framework. Developers can utilize built-in preparation, cleanup, and assertion macros to structure test cases and verify that custom IRIS classes function as expected.

What is the best way to validate custom class method outputs in InterSystems IRIS?

The best way to validate custom class method outputs in InterSystems IRIS is to create automated tests using the %UnitTest framework. By extending %UnitTest.TestCase, developers can define assertions to verify method outputs and ensure code reliability.

Can I run a specific group of unit tests in InterSystems IRIS?

Yes, you can run specific groups of unit tests in InterSystems IRIS by organizing them within a defined test class and invoking the %UnitTest.Manager. This allows you to target specific test suites like the 'MyTests' class for execution.