'Android code coverage integration with Gradle and Bamboo

I'm totally new with code coverage integrations for Android native apps.

I have to use Bamboo for continuous deployment and I have to integrate a code coverage tool. I've searched there are some, such as Clover, OpenClover and NCover, but I don't know anything else.

The app uses Kotlin.

I don't know if this can be done through Bamboo, but I have to build a logic so that, if the 90% of the code written is not covered, I can build the branch I'm working on but I can't merge it with the master.

Can someone explain me the steps in order to do it and can write me if it's possible to do it?

Thanks a lot, any help is really appreciated



Sources

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

Source: Stack Overflow

Solution Source