Index: vhUnitTest/Manager.cls.xml =================================================================== diff -u -r1070 -r1133 --- vhUnitTest/Manager.cls.xml (.../Manager.cls.xml) (revision 1070) +++ vhUnitTest/Manager.cls.xml (.../Manager.cls.xml) (revision 1133) @@ -1,5 +1,5 @@ - + Adopted from InterSystems's %UnitTest.Manager by logist (Dimas ltd., Russia) @@ -12,8 +12,6 @@ vhLib.Macro 1 %RegisteredObject -62209,52056.366104 -59429,65352.216564 0 @@ -156,13 +154,13 @@ Do ..LogStateBegin(suite,class) Do Do ..LogStateEnd(suite,class) . Set testcase=$zobjclassmethod(class,"%New",##this) . Set testcase.Debug=..Debug - . Set $zt= "MethErrorOnBeforeAllTests" + . Set:'..Debug $zt= "MethErrorOnBeforeAllTests" . Set sc=testcase.OnBeforeAllTests() If $$$ISERR(sc) Do ..LogStateStatus(sc,"OnBeforeAllTests") Quit . Set method="" For Set method=$$$comMemberNext(class,$$$cCLASSmethod,method) q:method="" If $e(method,1,4)="Test" Do . . Do ..LogStateBegin(suite,class,method) Do Do ..LogStateEnd(suite,class,method) . . . Set success=0 - . . . Set $zt="MethError" + . . . Set:'..Debug $zt="MethError" . . . Set sc=testcase.OnBeforeOneTest(method) If $$$ISERR(sc) Do ..LogStateStatus(sc,"OnBeforeOneTest") Quit . . . Set zhbeg=$zh Do $zobjmethod(testcase,method) Set zhend=$zh . . . Set ..TestCount=..TestCount+1 @@ -173,7 +171,7 @@ . . . Quit . Goto AfterAllTests MethErrorOnBeforeAllTests . Set zhend=$zh Do ..LogStateStatus($$$ERROR($$$CacheError,$ze_":"_$Text(@$Piece($ze,">",2,32767))),"OnBeforeAllTests") -AfterAllTests . Set $zt= "MethErrorOnAfterAllTests" +AfterAllTests . Set:'..Debug $zt= "MethErrorOnAfterAllTests" . Set sc=testcase.OnAfterAllTests() If $$$ISERR(sc) Do ..LogStateStatus(sc,"OnAfterAllTests") Quit . Goto Einde MethErrorOnAfterAllTests . Set zhend=$zh Do ..LogStateStatus($$$ERROR($$$CacheError,$ze_":"_$Text(@$Piece($ze,">",2,32767))),"OnAfterAllTests") Goto Einde @@ -389,5 +387,4 @@ ]]> -