From: Mark D. <Mar...@sa...> - 2005-07-20 20:14:55
|
Your conclusion is correct. Merging in the current release of Cobertura = doesn't work correctly. This SHOULD be fixed in CVS, but I have not = tested it myself. You may want to try checking out a copy of CVS and = using that (it's pretty easy to build, and should be stable). -Mark=20 > -----Original Message----- > From: cob...@li...=20 > [mailto:cob...@li...] On=20 > Behalf Of Nicolas Brault > Sent: Wednesday, July 20, 2005 8:27 AM > To: cob...@li... > Subject: [Cobertura-devel] Problem while trying to merge >=20 > Hi, >=20 > I have used Cobertura in order to test coverage of several=20 > projects. Now, as=20 > those different projects deal with the same global project=20 > but are not=20 > linked, I would like to merge the different reports generated=20 > in a single=20 > one. >=20 > I suppose the merge function of Cobertura is designed to do so. > I copy all the source files, and then I merge the different files=20 > cobertura.ser obtained previously. > Finally I generate a coverage-report. >=20 > My ant file suceeds in copying source, in finding data files=20 > cobertura.ser=20 > and in generating the report. >=20 > The trouble is that when I look at the generated report, only=20 > one of the two=20 > cobertura.ser file is taken into account. To sum up, merging=20 > has not been=20 > done. >=20 > Please light me. > Is there any example of merging available somewhere ? >=20 > To do so, I use the following the Ant file : >=20 > <?xml version=3D"1.0"?> >=20 >=20 > <project name=3D"rapportcouverture" default=3D"coverage" = basedir=3D"."> >=20 > <!-- Declaration de la tache de couverture --> > <taskdef classpath=3D"cobertura.jar" = resource=3D"tasks.properties"/> >=20 > <!-- Referentiel CVS --> > <property name=3D"cvs.cvsroot" value=3D"${env.CVSROOT}" /> > <property name=3D"source.dir" location=3D"src" /> > <property name=3D"src-all.dir" location=3D"src/com/airbus/" /> >=20 > <!-- Arborescence necessaire a la couverture (peut=20 > figurer dans le=20 > fichier *.properties) --> > <property name=3D"reports.dir"=20 > value=3D"${basedir}/document/coverage"/> >=20 > <!-- Path necessaire a la couverture --> > <path id=3D"coverage.classpath"> > <fileset dir=3D"${lib.dir}"> > <include name=3D"cobertura.jar" /> > <include name=3D"**/*.jar" /> > </fileset> > </path> >=20 > <target name=3D"clean" description=3D"Suppression du rapport=20 > de couverture"> > <delete includeEmptyDirs=3D"true" quiet=3D"true"> > <fileset dir=3D"document" /> > <fileset dir=3D"${source.dir}" /> > <fileset dir=3D"cobertura.ser" /> > </delete> > </target> >=20 > <target name=3D"mkoutdir"> > <mkdir dir=3D"${reports.dir}" /> > </target> >=20 > <!-- Copie des sources Java vers le repertoire de compilation --> > <target name=3D"copy-src" depends=3D"mkoutdir" > description=3D"Copie de tous les fichiers source java pour = > compilation"> > <mkdir dir=3D"${src-all.dir}"/> >=20 > _________________________________________________________________ > MSN Hotmail : antivirus et antispam gratuits=20 > http://www.imagine-msn.com/hotmail/default.aspx?locale=3Dfr-FR >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. = http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dclick > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel >=20 |