[r371]: / trunk / Library / POUs / FB_CfUnitRunner / RunTestSuiteTests / svnobj  Maximize  Restore  History

Download this file

50 lines (50 with data), 5.8 kB

Gx_l╩!0┘jЭo
СП%┴╗@вSystem.StringL{f8a58466-d7f6-439f-bbb8-d4600e41d099}ImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocumentL{f3878285-8e4f-490b-bb1b-9acbb7eb04db}TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}	Id
longTagText
8(* Run TcUnit test suites *)BIF NOT AllTestSuitesFinished THENp    IF GVL_CfUnit.NumberOfInitializedTestSuites = 0 THENL        AllTestSuitesFinished := TRUE;v    ELSIF GVL_CfUnit.NumberOfInitializedTestSuites > 0 THEN≤        FOR Counter := 1 TO GVL_CfUnit.NumberOfInitializedTestSuites BY 1 DO╒            IF GVL_CfUnit.TestSuiteAddresses[Counter]^.AreAllTestsFinished() THEN                 NumberOfTestSuitesFinished := NumberOfTestSuitesFinished + 1;             ELSEб                GVL_CfUnit.CurrentTestSuiteBeingCalled := GVL_CfUnit.TestSuiteAddresses[Counter];t                GVL_CfUnit.CurrentTestSuiteBeingCalled^();$            END_IF        END_FORй        (* Check if some event triggered an abortion of running the tests, in that case abort it now.ю           This can be accomplished by setting the result of the test suites run to finished. *)L        IF AbortRunningTestSuites THENі            NumberOfTestSuitesFinished := GVL_CfUnit.NumberOfInitializedTestSuites;		END_IF╙        IF NumberOfTestSuitesFinished = GVL_CfUnit.NumberOfInitializedTestSuites THEN T            AllTestSuitesFinished := TRUE;!        END_IF"    END_IF#END_IF$%V(* Store test suite results continuously *)&TestResults();'R(* Log test suite results continuously *)(NTestResultLogger.LogTestSuiteResults();)`(* publish the xUnit Xml file once if enabled *)*ZXmlTestResultPublisher.LogTestSuiteResults();+B(* Run the buffered ADS logger *),>//GVL_CfUnit.AdsMessageQueue();-Interface.L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}/0METHOD RunTestSuiteTests0VAR10    Counter : UINT := 0;20    BusyPrinting : BOOL;3END_VAR4VAR_INST5ч    (* We need to hold a temporary state of the statistics (failed, successful, total number of test cases etc)6ч       as we don't consider the tests to be completely finished until all test suites have executed completely.7Х       The reason we want to do it this way is because a test suite can run over several cycles. Only once all tests8╛       are finished (which might take many cycles), do we gather correct statistics *)9V    NumberOfTestSuitesFinished : UINT := 0;пппE#пп	
ґ└зп-
пп	
ґYзп-пп	
ґZзп-пп	
ґ[зп-пп	
ґ\зп-пп	
ґ]зп-пп	
ґ┘зп-пп	
ґ├зп-пп	
ґ┤зп-пп	
ґ┬зп-пп	
ґ┴зп-пп	
ґfзп-пп	
ґgзп-пп	
ґhзп-пп	
ґiзп-пп	
ґjзп-пп	
ґkзп-пп	
ґlзп-пп	
ґmзп-пп	
ґnзп- пп	
ґoзп-!пп	
ґpзп-"пп	
ґMзп-#пп	
ґNзп-$пп	
ґзп-%пп	
ґ─зп-&пп	
ґ│зп-$пп	
ґ┌зп-'пп	
ґXзп-(пп	
ґ▄зп-$пп	
ґ▌зп-)пп	
ґ┐зп-*пп	
ґ█зп-$пп	
ґUзп-+пп	
ґqзп-,п-.пEпп	
ґkзп-/пп	
ґlзп-0пп	
ґuзп-1пп	
ґvзп-2пп	
ґ┼зп-3пп	
ґwзп-4пп	
ґxзп-5пп	
ґyзп-6пп	
ґzзп-7пп	
ґ{зп-8пп	
ґwзп-9пп	
ґзп-3