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

Download this file

53 lines (53 with data), 7.6 kB

Gx_lÑ!0…jüoÀU°fñét|œ€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
BIF NOT AllTestSuitesFinished THENp    IF GVL_CfUnit.AmountOfInitializedTestSuites = 0 THENL        AllTestSuitesFinished := TRUE;v    ELSIF GVL_CfUnit.AmountOfInitializedTestSuites > 0 THEN˜        FOR Counter := 1 TO GVL_CfUnit.AmountOfInitializedTestSuites BY 1 DOœ            IF GVL_CfUnit.TestSuiteAddresses[Counter]^.AllTestsFinished() THEN®                AmountOfTestSuitesFinished_Temp := AmountOfTestSuitesFinished_Temp + 1;ü                AmountOfTestCases_Temp := GVL_CfUnit.TestSuiteAddresses[Counter]^.GetAmountOfTests() + AmountOfTestCases_Temp;                 AmountOfFailedTestCases_Temp := GVL_CfUnit.TestSuiteAddresses[Counter]^.GetAmountOfFailedTests() + AmountOfFailedTestCases_Temp;¸                AmountOfSuccessfulTestCases_Temp := GVL_CfUnit.TestSuiteAddresses[Counter]^.GetAmountOfSuccessfulTests() + AmountOfSuccessfulTestCases_Temp;             ELSE                GVL_CfUnit.CurrentTestSuiteBeingCalled := GVL_CfUnit.TestSuiteAddresses[Counter];t                GVL_CfUnit.CurrentTestSuiteBeingCalled^();Ö                RunnableTestSuiteResults[Counter] := GVL_CfUnit.CurrentTestSuiteBeingCalled^.GetRunState();$            END_IF        END_FOR´        IF AmountOfTestSuitesFinished_Temp = GVL_CfUnit.AmountOfInitializedTestSuites THENZ            (* Copy the final results over *)”            AmountOfTestSuitesFinished := AmountOfTestSuitesFinished_Temp; p            AmountOfTestCases := AmountOfTestCases_Temp;!ˆ            AmountOfFailedTestCases := AmountOfFailedTestCases_Temp;"˜            AmountOfSuccessfulTestCases := AmountOfSuccessfulTestCases_Temp;#T            AllTestSuitesFinished := TRUE;$        END_IF%    END_IF&END_IF'(:IF AllTestSuitesFinished THEN)N    IF NOT DonePrintingTestResults THEN*¤        TestResultPrinter.Format(AmountOfTestSuites := AmountOfTestSuitesFinished,+                                 AmountOfTestCases := AmountOfTestCases,,¸                                 AmountOfSuccessfulTestCases := AmountOfSuccessfulTestCases,-¨                                 AmountOfFailedTestCases := AmountOfFailedTestCases,.n                                 Busy => BusyPrinting);/h        DonePrintingTestResults := NOT BusyPrinting;0Interface1L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}20METHOD RunTestSuiteTests3VAR40    Counter : UINT := 0;50    BusyPrinting : BOOL;6	7Ø	(* We need to hold a temporary state of the statistics (failed, successful, total amount of test cases etc)8Þ       as we don't consider the tests to be completely finished until all test suites have executed completely.9è       The reason we want to do it this way is because a test suite can run over several cycles. Only once all tests:¬       are finished (which might take many cycles), do we gather correct statistics *);`    AmountOfTestSuitesFinished_Temp : UINT := 0;<N    AmountOfTestCases_Temp : UINT := 0;=Z    AmountOfFailedTestCases_Temp : UINT := 0;>b    AmountOfSuccessfulTestCases_Temp : UINT := 0;?END_VARÐÐÐE%ÐÐ	
­:ÚÐ-
ÐÐ	
­;ÚÐ-ÐÐ	
­<ÚÐ-ÐÐ	
­=ÚÐ-ÐÐ	
­>ÚÐ-ÐÐ	
­?ÚÐ-ÐÐ	
­@ÚÐ-ÐÐ	
­AÚÐ-ÐÐ	
­BÚÐ-ÐÐ	
­CÚÐ-ÐÐ	
­DÚÐ-ÐÐ	
­EÚÐ-ÐÐ	
­FÚÐ-ÐÐ	
­GÚÐ-ÐÐ	
­HÚÐ-ÐÐ	
­IÚÐ-ÐÐ	
­JÚÐ-ÐÐ	
­KÚÐ-ÐÐ	
­LÚÐ-ÐÐ	
­MÚÐ- ÐÐ	
­NÚÐ-!ÐÐ	
­OÚÐ-"ÐÐ	
­PÚÐ-#ÐÐ	
­QÚÐ-$ÐÐ	
­RÚÐ-%ÐÐ	
­SÚÐ-&ÐÐ	
­TÚÐ-'ÐÐ	
­UÚÐ-(ÐÐ	
­VÚÐ-)ÐÐ	
­WÚÐ-*ÐÐ	
­XÚÐ-+ÐÐ	
­YÚÐ-,ÐÐ	
­ZÚÐ--ÐÐ	
­[ÚÐ-.ÐÐ	
­\ÚÐ-/ÐÐ	
­]ÚÐ-%ÐÐ	
­ÚÐ-&Ð01ÐEÐÐ	
­&ÚÐ-2ÐÐ	
­'ÚÐ-3ÐÐ	
­(ÚÐ-4ÐÐ	
­)ÚÐ-5ÐÐ	
­7ÚÐ-6ÐÐ	
­4ÚÐ-7ÐÐ	
­5ÚÐ-8ÐÐ	
­6ÚÐ-9ÐÐ	
­3ÚÐ-:ÐÐ	
­/ÚÐ-;ÐÐ	
­0ÚÐ-<ÐÐ	
­1ÚÐ-=ÐÐ	
­2ÚÐ->ÐÐ	
­ÚÐ-?