ios - How to merge .gcda files generated by gcovr? -



let me explain problem first before asking solution. have appium automation tests our ios app. believe every test should start clean slate (i.e. app installation) instead of relying previous test bring app screen current test in question interested in. hoping approach correct. try generate .gcda file using approach mentioned here. clean state approach seems create multiple .gcda file every test. how merge in simpler way approach mentioned here (looks multiple steps - if there many .gcda files, need multiple steps). want coverage through appium till add unit tests legacy code, don't feel needed integrate complicated approach code coverage via appium ci, doing manually every time need coverage, mean converting .gcda lcov files, may time consuming. hence question.

thanks,

paddy

you need add capabilities full reset of application before test. works on real devices on simulators.

capabilities.setcapability("fullreset", true) capabilities.setcapability("noreset", false) 

if need reload application without clearing cache suggest using following capabilities:

capabilities.setcapability("fullreset", false) capabilities.setcapability("noreset", true) 

and application reload use function (ios only!):

static reloadapplication() {                    mobiledriver.closeapp()         mobiledriver.launchapp()             } 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -