'How to measure code coverage for an Android application without unit testing?

My goal is to measure the code coverage resulting from manually running the application (within the emulator). However, it appears that all coverage tools can only function in the context of unit testing.

I looked into creating a single unit test that simply invokes the “main( )” of my Android application, but I couldn’t figure out how to access the “main( )” function or its equivalent. Actually, I am not sure whether this is a good approach, to start with.

I appreciate any suggestions.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source