[r92]: / 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┌╨->╨╨	
н┌╨-?