Hi Marc, Thank you for your answer.
There is a way to integrate this feature in JaCoCo? Best regards, -- Benjamin DANGLOT. Le jeudi 27 juillet 2017 17:32:38 UTC+2, Marc R. Hoffmann a écrit : > > Hi, > > the Analyzer and CoverageBuilder works only on one ExecutionDataStore at > time. If you want to calculate coverage separately for different test cases > you need to capture execution data separately and do the analysis > separately. For large test sets this will create enormous amount of data. > Therefore such a feature was never integrated in JaCoCo. > > Regards, > -marc > > > > > > On 2017-07-27 14:37, Benjamin Danglot wrote: > > Hello all, > > I am using Jacoco inside a project, to compute instruction coverage of > test methods. > > For now, I could only count the instruction coverage at test class level. > I would to know if it is possible to count the instruction coverage at test > method level. > > For instance, I have example.Example, which is testes by > example.TestSuiteExample. The test class contains 2 test methods test1 and > test2. > > Thanks to the CoverageBuilder and the Analyzer, I'm able to measure the > number of instructions covered by the class example.TestSuiteExample. > > However, I would like to know the number of instruction covered by test1 > and test2 independently. For now, I found a work around: I run Jacoco for > each test method, one by one. > > But this is costly in terms of time computation. > > Would mind to indicate me if there is a way to log at the test method > level instead of at the test class level? > > If not, there is a way to implement it? > > Best regards, > > -- Benjamin DANGLOT. > > > -- > 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/5a09a058-be1f-478b-922b-242d1b385cf7%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/5a09a058-be1f-478b-922b-242d1b385cf7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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/fdc73027-c5b1-4ebb-8628-9c9ac13d0b1a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
