From: Piotr T. <pi...@ta...> - 2010-09-21 19:18:29
|
Responses are near the questions: 2010/9/21 gopala krishna <gkn...@gm...> > Actually I have same package name and class name for some files in two > three modules. What will happen to coverage report of these files? will it > be over written? > If the classes are generated from exactly the same source-code the coverage should be right and hits will be added together. > > Also I have cobertura.ser files got generated on different servers from > different machines with different jdk versions like jdk1.6.03, 1.6.14 etc. > WHen we merge these files, do we get correct report? > I think so. But you have to use the same version of cobertura in all this environments. I'm not sure if it will work between jdk 1.5.x and 1.6.x. > > 2010/9/21 Jensen Bryan Ching <jen...@gm...> > >> >> From my understanding, the usual purpose of the merge ANT task is to >> aggregate data from different sub-modules of a project build into a single >> *.ser file. >> >> I would like to ask if the merge task can also be used to aggregate *.ser >> files from multiple builds of the same project, i.e. consolidating *.ser >> files which gathered coverage data for the same code set but compiled on >> multiple builds. Would the data be overwritten/would there be errors if >> source code was changed between multiple builds? >> > I don't thing so. The hits are addressed by line number. If anything in the source-code changes, the results will be corrupted. Piotr Tabor -- Pozdrawiam, Piotr Tabor |