How to exclude Dagger2 classes from test coverage
问题 Is there any option to exclude Dagger2 classes from test coverage report in Android Studio 回答1: JaCoCo excludes If you're using JaCoCo, for example using android instrumentation connected tests , you need to configure the excludes (or includes), which, according to the documentation is... A list of class files to exclude from the report. May use wildcard characters (* and ?). When not specified nothing will be excluded. Which means you need to match the generated dagger class names. The