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

Download this file

18 lines (17 with data), 7.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
IF NOT AllTestSuitesFinished THEN
    IF GVL_CfUnit.NumberOfInitializedTestSuites = 0 THEN
        AllTestSuitesFinished := TRUE;
    ELSIF GVL_CfUnit.NumberOfInitializedTestSuites > 0 THEN
            IF GVL_CfUnit.TestSuiteAddresses[Counter]^.AreAllTestsFinished() THEN
                NumberOfTestCases_Temp := GVL_CfUnit.TestSuiteAddresses[Counter]^.GetNumberOfTests() + NumberOfTestCases_Temp;
                NumberOfSuccessfulTestCases_Temp := GVL_CfUnit.TestSuiteAddresses[Counter]^.GetNumberOfSuccessfulTests() + NumberOfSuccessfulTestCases_Temp;
            ELSE
        (* Check if some event triggered an abortion of running the tests, in that case abort it now.
            NumberOfTestSuitesFinished_Temp := GVL_CfUnit.NumberOfInitializedTestSuites;
		END_IF
TestResultLogger.LogTestSuiteResults(TestResults := TestResults.GetTestSuiteResults() );
(* Run the buffered ADS logger *)
//GVL_CfUnit.AdsMessageQueue();
(* publish the jUnit Xml code *)
    (* We need to hold a temporary state of the statistics (failed, successful, total number of test cases etc)
       The reason we want to do it this way is because a test suite can run over several cycles. Only once all tests