objectscript-unit-test

Generate %UnitTest.TestCase scaffolds for ObjectScript classes via live IRIS introspection.

27|10|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/intersystems-community/iris-dev --skill objectscript-unit-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: objectscript-unit-test
Source: https://github.com/intersystems-community/iris-dev/tree/main/light-skills/skills/objectscript-unit-test
Command: npx skills add https://github.com/intersystems-community/iris-dev --skill objectscript-unit-test

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generating idiomatic IRIS %UnitTest.TestCase scaffolds for ObjectScript classes using live introspection, ensuring tests reflect actual runtime behavior rather than static assumptions.

Core Features & Use Cases

  • Live introspection-driven test scaffolds for public methods
  • Produces class and method-level tests ready for compile and run
  • Ideal for validating behavior after refactors or bug fixes

Quick Start

Generate unit-test scaffolds for a specific ObjectScript class and save them under the default tests directory.

Frequently Asked Questions about objectscript-unit-test

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

FAQPage Schema
How do I generate ObjectScript unit tests for an existing class?

Generate ObjectScript unit tests for an existing class by using live IRIS introspection to automatically create %UnitTest.TestCase scaffolds. This ensures the generated tests reflect actual runtime behavior and are immediately ready to compile and run.

Can I generate test scaffolds for only specific public methods in ObjectScript?

Yes, you can generate test scaffolds for specific public methods in ObjectScript. The tool supports selective method generation, allowing you to target individual methods or automatically scaffold tests for all public methods of a given class in your local IRIS environment.

What is live introspection in IRIS unit test generation?

Live introspection in IRIS unit test generation is the process of querying a running IRIS instance to read class structures. It ensures generated %UnitTest.TestCase scaffolds match the actual runtime method signatures, avoiding static assumptions that lead to broken tests.

Does this unit test scaffolding tool require a running IRIS environment?

Yes, this unit test scaffolding tool requires a running local IRIS environment. It relies on live introspection data from the active instance to accurately read class definitions and generate compilable %UnitTest.TestCase scaffolds that align with your repository's testing conventions.

Why use live introspection instead of static analysis for ObjectScript unit tests?

Using live introspection instead of static analysis for ObjectScript unit tests ensures scaffolds match actual runtime behavior. It queries the live IRIS environment directly, producing accurate, compilable test cases that validate real method signatures after refactors or bug fixes.