Page 1 of 1

Test Framework Coverage Report

Posted: Sun Aug 14, 2022 11:32 am
by shokkul
Hello All,

I recently opened a topic regarding to how to create test framework. Currently I am also trying to get the coverage report. I give coverage report input to testProj.[projName].config

Code: Select all

{
    "ID": "TestRunAllUnitTests",
    "NAME": "TestRunAllUnitTests",
    "DESCRIPTION": "Tests all unit tests in given projects",
    "PACK_SEL":  4,
    "CTRL_COVERAGE":  true,
    "SUB_PROJS":  ["MySubProj"],
    "TEST_MANAGERS": 
    [ 
        {
             "MANAGER_OPTIONS":  "tests/libs/classes/NewFile.ctl",
             "CTRL_COVERAGE":  true
        },
        {
             "MANAGER_OPTIONS":  "tests/libs/classes/NewFile2.ctl",
             "CTRL_COVERAGE":  true
        }
    ],
    "FILE_VERSION": "1.0"
}
The test runs successfully however no code coverage report xml has been generated under Results folder. However when I go to stored folder of test framework path projects, get into valid projects folder and open the last zipped project, I can see my coverage results under logs.
So why TestFramework is not generating these results under WinCC_OA_Test/Results folder?

Thanks