*Problem:* Actually the objective of my thesis project is "Use of mock object in Code Coverage is considered". 1) There is a sample code given (also with test cases given which use mock objects). 2) I have to get and run the source code of code coverage tools (like JaCoCo). 3) This gives 100%(assumption) coverage for sample code which is called by test code using real and mock objects.
*4) 100% includes code covered by (real objects) + (mock objects) + (real and mock objects).5) My interest is into the code covered by (real objects) + (real and mock objects).* 6) For this I have to find and modify the *"code coverage tool*" code. * Example : *Object A has method a1() which calls object B method b1() and object C method c1(). (i) When I run the tool it gives me 100%(assumption) code coverage. (ii) When I mock the object C and again run coverage tool it gives 100% coverage. (iii) When I mock the object C and use real object of C also, tools gives 100% coverage. But after modifying code in "Code Coverage Tool" it should give me output as 50% for case (ii) above because I don't want coverage for code which is called by ONLY mock object. *My Query:* 1) Is the code repository for *"Code Coverage Tool"* JaCoCo is https://github.com/jacoco/jacoco OR https://github.com/jacoco/eclemma ? 2) Which java file do I need to modify for NOT considering coverage for code called by mock objects ONLY ? Thanks, Yogesh On Thursday, April 23, 2015 at 1:52:46 AM UTC+10, Marc R. Hoffmann wrote: > > > https://github.com/jacoco/eclemma > > This repository is not JaCoCo, but EclEmma (the Eclipse plug-in for > JaCoCo). If your want to work on the JaCoCo source code the repository > is https://github.com/jacoco/jacoco > > > But how can I run JaCoCo for a sample code of mine ? > > What exactly do you mean by "run a sample code of mine"?. If you want to > *use* JaCoCo there are pre-built distributions. > > Regards, > -marc > > > > On 2015-04-22 17:44, Yogesh Shinde wrote: > > I have taken all the code into eclipse from > > "https://github.com/jacoco/eclemma". > > But how can I run JaCoCo for a sample code of mine ? > > > > Thanks, > > Yogesh > > > > -- > > 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] <javascript:>. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/jacoco/d840e3c2-43d9-411f-8012-fe7cb070b905%40googlegroups.com > > > [1]. > > For more options, visit https://groups.google.com/d/optout [2]. > > > > > > Links: > > ------ > > [1] > > > https://groups.google.com/d/msgid/jacoco/d840e3c2-43d9-411f-8012-fe7cb070b905%40googlegroups.com?utm_medium=email&utm_source=footer > > > [2] 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/3c13284e-2f64-4846-b2ab-f8312faa7aae%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
