I think we had jacoco test coverage running for tests that used mocking at
some point. As long as you don't mock the class-under-test, I don't see a
reason why it should not work. I faintly remember some byte code
manipulation issues, but I'm probably mixing up aspectJ and mock frameworks
here.

Hope this helps.

Am 05.10.2017 03:37 schrieb <[email protected]>:

> I've banging my head against the wall trying to make JaCoCo include
> coverage for tests that use Mockito. I'm writing unit & instrumentation
> test for Android and JaCoCo keep yielding 0% code coverage for the tests
> that use Mockito to mock objects.
>
> Can someone please confirm if JaCoCo works with Mockito?
>
> I have a question in SO with all the details, so please feel free to take
> a look https://stackoverflow.com/questions/46517471/jacoco-
> mockito-android-tests-zero-coverage-reported
>
> Cheers!
>
> --
> You received this message because you are subscribed to the Google Groups
> "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jacoco/d558e2cc-6697-47eb-a1f2-59dd4905325d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/CAMCezdNjJJBFHZJjhh7Uh0a%2BRy6Fa08VPFj9UQ-_mtUVigDyyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to