From: Mark D. <Mar...@sa...> - 2005-09-16 18:03:22
|
Stuff to check: -Make sure you really are using instrumented classes -When you run your tests, make sure they're using the same cobertura.ser = file that was created when you instrumented -When you generate the report, make sure it's finding the cobertura.ser = file You can do a search, and if you find two cobertura.ser files then you = might have a little problem. -Mark > -----Original Message----- > From: cob...@li...=20 > [mailto:cob...@li...] On=20 > Behalf Of duv...@ya... > Sent: Thursday, September 15, 2005 12:23 PM > To: ML Cobertura > Subject: [Cobertura-devel] Report staying dead empty >=20 > We have for historical reasons a really messy directory=20 > structure... with many directories and > 'tanks' god the necessary exclusion filters for reaching the=20 > right classes (yessss directory > structure are cumbersomely imbricated.... ).=20 >=20 > Cobertura is 1.6 (finally :) ) > The code compiles fine. > Code instrumentation is running without any complains. > The junit-task is as what follows (whithin a macrodef) : > <junit printsummary=3D"yes"=20 > haltonfailure=3D"no"=20 > fork=3D"yes"=20 > failureProperty=3D"tests.failed" =20 > forkmode=3D"once"> > <sysproperty key=3D"net.sourceforge.cobertura.datafile" > =20 > file=3D"${quality.dir}/cobertura/cobertura.ser" /> =20 > <!--=20 > Special CP having the instrumented class=20 > reference before =20 > the "just compiled" classes > --> > <classpath refid=3D"tests.run.path" /> =20 > <formatter type=3D"xml" /> =20 > <batchtest fork=3D"yes" todir=3D"${quality-xml.dir}"=20 > errorproperty=3D"junit.failure"> > <fileset refid=3D"@{target}.testcases.files" /> > </batchtest> > </junit> > <sleep seconds=3D"2" /> >=20 > But when I run the cobertura-report > <cobertura-report format=3D"html"=20 > destdir=3D"${quality.dir}/cobertura" =20 > =20 > datafile=3D"${quality.dir}/cobertura/cobertura.ser" > =20 > =20 > <fileset refid=3D"common.files" /> =20 > <fileset refid=3D"base.files" /> > <!-- ... there is approximatively 15 more of those ... --> > </cobertura-report> =20 >=20 > the report indicate that there is no coverage ...=20 > Now my worry is that the 1.4 version I saw running... outputs=20 > some messages to indicate that > Cobertura is also doing its work (something like "loading=20 > data ...") in the begin and the end. > Now, this never happpens in 1.6... > Is it the indication that my configuration is incorrect or is=20 > it the expected behavior ...? >=20 > Tx, >=20 >=20 > \T, >=20 > -- > Any fool can write code that a computer can understand.=20 > Good programmers write code that humans can understand. > Martin Fowler=20 > T. : +32 (0)2 742 05 94 > M. : +32 (0)497 44 68 12 > @ : duv...@ya... > Do you skype too ... ? >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App=20 > Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel >=20 |