On Wednesday, 4 October 2017 19:58:48 UTC-7, Henrik Horneber wrote: > 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.
I do need to mock some methods of classes under test. Do you think that's something JaCoCo won't cover? -- 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/253dfe54-2c02-452b-95c2-f1b7140131e5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
