[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عذ-:ذذ	
­عذ-;