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

Download this file

51 lines (51 with data), 6.2 kB

Gx_l!0…jüo1<›™—¹“Àö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_TcUnit.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_Temp := GVL_CfUnit.NumberOfInitializedTestSuites;		END_IF´        IF NumberOfTestSuitesFinished_Temp = 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();)B(* Run the buffered ADS logger *)*>//GVL_CfUnit.AdsMessageQueue();+@(* publish the jUnit Xml code *),„JUnitXmlPublisher.LogTestSuiteResults(TestResults := TestResults);-Interface.L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}/0METHOD RunTestSuiteTests0VAR10    Counter : UINT := 0;20    BusyPrinting : BOOL;3Þ    (* We need to hold a temporary state of the statistics (failed, successful, total number of test cases etc)4Þ       as we don't consider the tests to be completely finished until all test suites have executed completely.5è       The reason we want to do it this way is because a test suite can run over several cycles. Only once all tests6¬       are finished (which might take many cycles), do we gather correct statistics *)7`    NumberOfTestSuitesFinished_Temp : UINT := 0;8N    NumberOfTestCases_Temp : UINT := 0;9Z    NumberOfFailedTestCases_Temp : UINT := 0;:b    NumberOfSuccessfulTestCases_Temp : UINT := 0;;END_VARÐÐÐE#ÐÐ	
­„ÚÐ-
ÐÐ	
­YÚÐ-ÐÐ	
­ZÚÐ-ÐÐ	
­[ÚÐ-ÐÐ	
­\ÚÐ-ÐÐ	
­]ÚÐ-ÐÐ	
­…ÚÐ-ÐÐ	
­†ÚÐ-ÐÐ	
­‡ÚÐ-ÐÐ	
­ˆÚÐ-ÐÐ	
­‰ÚÐ-ÐÐ	
­fÚÐ-ÐÐ	
­gÚÐ-ÐÐ	
­hÚÐ-ÐÐ	
­iÚÐ-ÐÐ	
­jÚÐ-ÐÐ	
­kÚÐ-ÐÐ	
­lÚÐ-ÐÐ	
­mÚÐ-ÐÐ	
­nÚÐ- ÐÐ	
­oÚÐ-!ÐÐ	
­pÚÐ-"ÐÐ	
­MÚÐ-#ÐÐ	
­NÚÐ-$ÐÐ	
­ÚÐ-%ÐÐ	
­€ÚÐ-&ÐÐ	
­ÚÐ-$ÐÐ	
­‚ÚÐ-'ÐÐ	
­XÚÐ-(ÐÐ	
­ƒÚÐ-$ÐÐ	
­UÚÐ-)ÐÐ	
­qÚÐ-*ÐÐ	
­tÚÐ-$ÐÐ	
­sÚÐ-+ÐÐ	
­rÚÐ-,Ð-.ÐEÐÐ	
­kÚÐ-/ÐÐ	
­lÚÐ-0ÐÐ	
­uÚÐ-1ÐÐ	
­vÚÐ-2ÐÐ	
­wÚÐ-$ÐÐ	
­xÚÐ-3ÐÐ	
­yÚÐ-4ÐÐ	
­zÚÐ-5ÐÐ	
­{ÚÐ-6ÐÐ	
­|ÚÐ-7ÐÐ	
­}ÚÐ-8ÐÐ	
­~ÚÐ-9ÐÐ	
­wÚÐ-:ÐÐ	
­ÚÐ-;