in my project I started code coverage for unit and integration test with gradle + jacoco. It's already working and generating reports.
I saw a lot of questions and tutorials about how to do code coverage for both tests, but I didn't see any question about why do code coverage for integration test. Which type of data do we expect for integration test (code coverage)? The same as unit test?
Why I'm asking this: On unit test, we explicit call methods, objects and other system under test code. In this scenario, jacoco understand this and do a metric for code coverage based on what methods/properties is being called. And this is ok, makes sense to me. But on integration test, I only use some model classes to use in test and jacoco only report this models as being code coverage but not the methods being used during the tests.
Makes sense to do a code coverage for integration test? Which type of data do we expect? Or my integration test code coverage is wrong?