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

Download this file

52 lines (52 with data), 7.4 kB

Gx_là!0…jüoçjy8ÉÑå@‡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.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]^.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^();$            END_IF        END_FOR´        IF AmountOfTestSuitesFinished_Temp = GVL_CfUnit.NumberOfInitializedTestSuites 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;/Interface0L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}10METHOD RunTestSuiteTests2VAR30    Counter : UINT := 0;40    BusyPrinting : BOOL;5	6Ø	(* We need to hold a temporary state of the statistics (failed, successful, total amount of test cases etc)7Þ       as we don't consider the tests to be completely finished until all test suites have executed completely.8è       The reason we want to do it this way is because a test suite can run over several cycles. Only once all tests9¬       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ÚÐ-ÐÐ	
­HÚÐ-ÐÐ	
­IÚÐ-ÐÐ	
­JÚÐ-ÐÐ	
­KÚÐ-ÐÐ	
­LÚÐ-ÐÐ	
­MÚÐ-ÐÐ	
­NÚÐ- ÐÐ	
­OÚÐ-!ÐÐ	
­PÚÐ-"ÐÐ	
­QÚÐ-#ÐÐ	
­RÚÐ-$ÐÐ	
­SÚÐ-%ÐÐ	
­TÚÐ-&ÐÐ	
­UÚÐ-'ÐÐ	
­VÚÐ-(ÐÐ	
­WÚÐ-)ÐÐ	
­XÚÐ-*ÐÐ	
­YÚÐ-+ÐÐ	
­ZÚÐ-,ÐÐ	
­[ÚÐ--ÐÐ	
­\ÚÐ-.ÐÐ	
­]ÚÐ-$ÐÐ	
­ÚÐ-%Ð/0ÐEÐÐ	
­&ÚÐ-1ÐÐ	
­'ÚÐ-2ÐÐ	
­(ÚÐ-3ÐÐ	
­)ÚÐ-4ÐÐ	
­7ÚÐ-5ÐÐ	
­4ÚÐ-6ÐÐ	
­5ÚÐ-7ÐÐ	
­6ÚÐ-8ÐÐ	
­3ÚÐ-9ÐÐ	
­/ÚÐ-:ÐÐ	
­0ÚÐ-;ÐÐ	
­1ÚÐ-<ÐÐ	
­2ÚÐ-=ÐÐ	
­ÚÐ->