Skip to main content

This documentation is for an older version of this product. See the latest version of this content.Opens in a new tab

%ZHSLIB.PackageManager.Developer.Processor.UnitTest

class %ZHSLIB.PackageManager.Developer.Processor.UnitTest extends %ZHSLIB.PackageManager.Developer.Processor.Abstract

Property Inventory

Method Inventory

Parameters

parameter ATTRIBUTES = Phase,Package,Class,ManagerClass,Format,ExportFlags;
Comma-separated list of resource attribute names that this processor uses
parameter DESCRIPTION = Loads unit tests (extending %UnitTest.TestCase) from the specified directory and runs them during (Phase). For modules in development mode, the unit tests are always loaded and are not deleted after they are run.;
Description of resource processor class (shown in UI)

Properties

property Class as %String (MAXLEN = 255);
Class containing unit tests - this will be mapped properly on development systems, and unit tests won't be deleted in the "test" phase
Property methods: ClassDisplayToLogical(), ClassGet(), ClassIsValid(), ClassLogicalToDisplay(), ClassLogicalToOdbc(), ClassNormalize(), ClassSet()
property ExportFlags as %String);
Flags/qualifiers to export items with.
Property methods: ExportFlagsDisplayToLogical(), ExportFlagsGet(), ExportFlagsIsValid(), ExportFlagsLogicalToDisplay(), ExportFlagsLogicalToOdbc(), ExportFlagsNormalize(), ExportFlagsSet()
property Format as %String (VALUELIST = ",UDL,XML");
Export format
Property methods: FormatDisplayToLogical(), FormatGet(), FormatIsValid(), FormatLogicalToDisplay(), FormatLogicalToOdbc(), FormatNormalize(), FormatSet()
property ManagerClass as %Dictionary.Classname [ InitialExpression = "%ZHSLIB.PackageManager.Developer.UnitTest.Manager" ];
Class extending %UnitTest.Manager to use to run unit tests
Property methods: ManagerClassGet(), ManagerClassIsValid(), ManagerClassSet()
property Package as %String (MAXLEN = 255);
Package containing unit tests - this will be mapped properly on development systems, and unit tests won't be deleted in the "test" phase if any classes in it exist.
Property methods: PackageDisplayToLogical(), PackageGet(), PackageIsValid(), PackageLogicalToDisplay(), PackageLogicalToOdbc(), PackageNormalize(), PackageSet()
property Phase as %ZHSLIB.PackageManager.Core.ListOfOptions (VALUELIST = ",test,verify") [ InitialExpression = $ListBuild("test") , Required ];
Phase in which the unit tests run - "test" (dev namespace), "verify" (separate, clean namespace), or "test,verify" (to run in both cases).
Property methods: PhaseDisplayToLogical(), PhaseGet(), PhaseIsValid(), PhaseLogicalToDisplay(), PhaseLogicalToOdbc(), PhaseLogicalToXSD(), PhaseOdbcToLogical(), PhaseSet(), PhaseXSDToLogical()

Methods

method ExtensionGet() as %String
method GetSourceControlInfo(Output pInfo As %ZHSLIB.PackageManager.Developer.Extension.SourceControl.ResourceInfo) as %Status
method OnAfterPhase(pPhase As %String, ByRef pParams) as %Status
method OnExportItem(pFullExportPath As %String, pItemName As %String, ByRef pItemParams, ByRef pParams, Output pItemHandled As %Boolean = 0) as %Status
method OnGetUniqueName(Output pUniqueName)
Returns a unique name for this resource. Default implementation, leaving pUniqueName undefined, reverts to default behavior. An empty string indicates guaranteed uniqueness (useful for folders relative to module root)
method OnItemRelativePath(pItemName As %String) as %String
Returns the path relative to the module root for item pItemName within this resource.
method OnPhase(pPhase As %String, ByRef pParams, Output pResourceHandled As %Boolean = 0) as %Status
Inherited description: Called as phase pPhase is executed for the resource. If pResourceHandled is set to true, then the default behavior for that resource will be bypassed in the current phase. Currently, this is only used in the Verify phase, because of different handling of intermediate error statuses. TODO: Implement for standard database resources (.INC, .CLS, etc.)
method OnResolveChildren(ByRef pResourceArray As %Library.String, pCheckModuleOwnership As %Library.Boolean) as %Status
method TestsShouldRun(pPhase As %String, ByRef pParams) as %Boolean

Inherited Members

Inherited Methods

FeedbackOpens in a new tab