Code Coverage with Appium

I have a mobile automation project with Appium. Is it possible to get a code-coverage from the application under test ? For example, is it possible to calculate a statement coverage or decision coverage ratio ?
Thanks a lot.

Appium is a black-box testing tool. Coverage only makes sense for white-box tests or API tests

1 Like

Hi.
I was also interested in achieving this. Even if Appium is a black-box testing tool, cannot be set XCode to generate the .xcresult (Logs/Test directory in the Derived Data path) for every time the app is run?
In this discussion (https://stackoverflow.com/questions/13453715/uiautomation-with-code-coverage) this possibility is mentioned and successfully implemented for Appium (https://stackoverflow.com/questions/39233514/code-coverage-with-appium-for-ios). I have tried to implement it but I did not succeed (it is an approach from 2013, maybe things might have changed since then in XCode…).

Do you think this approach might make sense? Do you know how to implement it?