Test Framework Coverage Report

Find and share HowTos to various installations / configurations!
Search

Post Reply
1 post • Page 1 of 1
shokkul
Posts: 28
Joined: Mon Feb 25, 2019 8:50 am

Test Framework Coverage Report

Post 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

Post Reply
1 post • Page 1 of 1