|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
No changes in cobertura.ser after testsHi,
After a set of tests i stop the jvm(the server), some message are displayed : Cobertura: Loaded information on 2 classes. Cobertura: Saved information on 2 classes. But there is no changes in my cobertura.ser, and the report display 0% for all classes, the tests call some classes several times, and this behavior is not normal. Khalid ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Cobertura-devel mailing list Cobertura-devel@... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
|
|
Re: No changes in cobertura.ser after testsThere is very likely another cobertura.ser file being created. I would search your entire hard drive for it. That will be the location you need to use when calling cobertura-instrument and cobertura-report. -----Original Message----- From: Khalid CHAABANE [mailto:khalid.chaabane@...] Sent: Wednesday, October 21, 2009 12:35 PM To: Cobertura-devel@... Subject: [Cobertura-devel] No changes in cobertura.ser after tests Hi, After a set of tests i stop the jvm(the server), some message are displayed : Cobertura: Loaded information on 2 classes. Cobertura: Saved information on 2 classes. But there is no changes in my cobertura.ser, and the report display 0% for all classes, the tests call some classes several times, and this behavior is not normal. Khalid ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Cobertura-devel mailing list Cobertura-devel@... https://lists.sourceforge.net/lists/listinfo/cobertura-devel ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Cobertura-devel mailing list Cobertura-devel@... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
|
|
Re: No changes in cobertura.ser after testsYes there are two cobertura.ser created with different paths, one in
instrumenting step, another in JVM stopping step. what is the solution to get a single file? John W. Lewis a écrit : > There is very likely another cobertura.ser file being created. I would search your entire hard drive for it. That will be the location you need to use when calling cobertura-instrument and cobertura-report. > > -----Original Message----- > From: Khalid CHAABANE [mailto:khalid.chaabane@...] > Sent: Wednesday, October 21, 2009 12:35 PM > To: Cobertura-devel@... > Subject: [Cobertura-devel] No changes in cobertura.ser after tests > > Hi, > > After a set of tests i stop the jvm(the server), some message are > displayed : > > Cobertura: Loaded information on 2 classes. > Cobertura: Saved information on 2 classes. > > But there is no changes in my cobertura.ser, and the report display 0% > for all classes, the tests call some classes several times, and this > behavior is not normal. > > Khalid > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Cobertura-devel mailing list > Cobertura-devel@... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Cobertura-devel mailing list Cobertura-devel@... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
|
|
Re: No changes in cobertura.ser after testsSet the datafile attribute of cobertura-instrument and cobertura-report to the location of the cobertura.ser that was created by the JVM. -----Original Message----- From: Khalid CHAABANE [mailto:khalid.chaabane@...] Sent: Thursday, October 22, 2009 6:39 AM To: John W. Lewis Cc: Cobertura-devel@... Subject: Re: [Cobertura-devel] No changes in cobertura.ser after tests Yes there are two cobertura.ser created with different paths, one in instrumenting step, another in JVM stopping step. what is the solution to get a single file? John W. Lewis a écrit : > There is very likely another cobertura.ser file being created. I would search your entire hard drive for it. That will be the location you need to use when calling cobertura-instrument and cobertura-report. > > -----Original Message----- > From: Khalid CHAABANE [mailto:khalid.chaabane@...] > Sent: Wednesday, October 21, 2009 12:35 PM > To: Cobertura-devel@... > Subject: [Cobertura-devel] No changes in cobertura.ser after tests > > Hi, > > After a set of tests i stop the jvm(the server), some message are > displayed : > > Cobertura: Loaded information on 2 classes. > Cobertura: Saved information on 2 classes. > > But there is no changes in my cobertura.ser, and the report display 0% > for all classes, the tests call some classes several times, and this > behavior is not normal. > > Khalid > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Cobertura-devel mailing list > Cobertura-devel@... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Cobertura-devel mailing list Cobertura-devel@... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
|
|
Re: No changes in cobertura.ser after testsI use the comand line, the path of cobertura.ser specified in
cobertura-instrument is the same as cobertura-report, but the JVM generate it in another location(So why?) Thanks John, Khalid John W. Lewis a écrit : > Set the datafile attribute of cobertura-instrument and cobertura-report to the location of the cobertura.ser that was created by the JVM. > > -----Original Message----- > From: Khalid CHAABANE [mailto:khalid.chaabane@...] > Sent: Thursday, October 22, 2009 6:39 AM > To: John W. Lewis > Cc: Cobertura-devel@... > Subject: Re: [Cobertura-devel] No changes in cobertura.ser after tests > > Yes there are two cobertura.ser created with different paths, one in > instrumenting step, another in JVM stopping step. > what is the solution to get a single file? > > John W. Lewis a écrit : > >> There is very likely another cobertura.ser file being created. I would search your entire hard drive for it. That will be the location you need to use when calling cobertura-instrument and cobertura-report. >> >> -----Original Message----- >> From: Khalid CHAABANE [mailto:khalid.chaabane@...] >> Sent: Wednesday, October 21, 2009 12:35 PM >> To: Cobertura-devel@... >> Subject: [Cobertura-devel] No changes in cobertura.ser after tests >> >> Hi, >> >> After a set of tests i stop the jvm(the server), some message are >> displayed : >> >> Cobertura: Loaded information on 2 classes. >> Cobertura: Saved information on 2 classes. >> >> But there is no changes in my cobertura.ser, and the report display 0% >> for all classes, the tests call some classes several times, and this >> behavior is not normal. >> >> Khalid >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Cobertura-devel mailing list >> Cobertura-devel@... >> https://lists.sourceforge.net/lists/listinfo/cobertura-devel >> >> >> >> > > > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Cobertura-devel mailing list Cobertura-devel@... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
|
|
Re: No changes in cobertura.ser after testsBy default Cobertura looks for the cobertura.ser file in the current directory of the JVM. At the command line, use the --datafile parameter. -----Original Message----- From: Khalid CHAABANE [mailto:khalid.chaabane@...] Sent: Thursday, October 22, 2009 7:25 AM To: John W. Lewis Cc: Cobertura-devel@... Subject: Re: [Cobertura-devel] No changes in cobertura.ser after tests I use the comand line, the path of cobertura.ser specified in cobertura-instrument is the same as cobertura-report, but the JVM generate it in another location(So why?) Thanks John, Khalid John W. Lewis a écrit : > Set the datafile attribute of cobertura-instrument and cobertura-report to the location of the cobertura.ser that was created by the JVM. > > -----Original Message----- > From: Khalid CHAABANE [mailto:khalid.chaabane@...] > Sent: Thursday, October 22, 2009 6:39 AM > To: John W. Lewis > Cc: Cobertura-devel@... > Subject: Re: [Cobertura-devel] No changes in cobertura.ser after tests > > Yes there are two cobertura.ser created with different paths, one in > instrumenting step, another in JVM stopping step. > what is the solution to get a single file? > > John W. Lewis a écrit : > >> There is very likely another cobertura.ser file being created. I would search your entire hard drive for it. That will be the location you need to use when calling cobertura-instrument and cobertura-report. >> >> -----Original Message----- >> From: Khalid CHAABANE [mailto:khalid.chaabane@...] >> Sent: Wednesday, October 21, 2009 12:35 PM >> To: Cobertura-devel@... >> Subject: [Cobertura-devel] No changes in cobertura.ser after tests >> >> Hi, >> >> After a set of tests i stop the jvm(the server), some message are >> displayed : >> >> Cobertura: Loaded information on 2 classes. >> Cobertura: Saved information on 2 classes. >> >> But there is no changes in my cobertura.ser, and the report display 0% >> for all classes, the tests call some classes several times, and this >> behavior is not normal. >> >> Khalid >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Cobertura-devel mailing list >> Cobertura-devel@... >> https://lists.sourceforge.net/lists/listinfo/cobertura-devel >> >> >> >> > > > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Cobertura-devel mailing list Cobertura-devel@... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
|
|
Re: No changes in cobertura.ser after testsI use the --datafile option in both cobertura-instrument and
cobertura-report, but the jvm generate the file in his current directory,so i want that the JVM generate the datafile in the same directory as the specified one with cobertura-instrument and cobertura-report. Khalid John W. Lewis a écrit : > By default Cobertura looks for the cobertura.ser file in the current directory of the JVM. > > At the command line, use the --datafile parameter. > > -----Original Message----- > From: Khalid CHAABANE [mailto:khalid.chaabane@...] > Sent: Thursday, October 22, 2009 7:25 AM > To: John W. Lewis > Cc: Cobertura-devel@... > Subject: Re: [Cobertura-devel] No changes in cobertura.ser after tests > > I use the comand line, the path of cobertura.ser specified in > cobertura-instrument is the same as cobertura-report, but the JVM > generate it in another location(So why?) > Thanks John, > > Khalid > > John W. Lewis a écrit : > >> Set the datafile attribute of cobertura-instrument and cobertura-report to the location of the cobertura.ser that was created by the JVM. >> >> -----Original Message----- >> From: Khalid CHAABANE [mailto:khalid.chaabane@...] >> Sent: Thursday, October 22, 2009 6:39 AM >> To: John W. Lewis >> Cc: Cobertura-devel@... >> Subject: Re: [Cobertura-devel] No changes in cobertura.ser after tests >> >> Yes there are two cobertura.ser created with different paths, one in >> instrumenting step, another in JVM stopping step. >> what is the solution to get a single file? >> >> John W. Lewis a écrit : >> >> >>> There is very likely another cobertura.ser file being created. I would search your entire hard drive for it. That will be the location you need to use when calling cobertura-instrument and cobertura-report. >>> >>> -----Original Message----- >>> From: Khalid CHAABANE [mailto:khalid.chaabane@...] >>> Sent: Wednesday, October 21, 2009 12:35 PM >>> To: Cobertura-devel@... >>> Subject: [Cobertura-devel] No changes in cobertura.ser after tests >>> >>> Hi, >>> >>> After a set of tests i stop the jvm(the server), some message are >>> displayed : >>> >>> Cobertura: Loaded information on 2 classes. >>> Cobertura: Saved information on 2 classes. >>> >>> But there is no changes in my cobertura.ser, and the report display 0% >>> for all classes, the tests call some classes several times, and this >>> behavior is not normal. >>> >>> Khalid >>> >>> >>> ------------------------------------------------------------------------------ >>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>> is the only developer event you need to attend this year. Jumpstart your >>> developing skills, take BlackBerry mobile applications to market and stay >>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>> http://p.sf.net/sfu/devconference >>> _______________________________________________ >>> Cobertura-devel mailing list >>> Cobertura-devel@... >>> https://lists.sourceforge.net/lists/listinfo/cobertura-devel >>> >>> >>> >>> >>> >> >> >> > > > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Cobertura-devel mailing list Cobertura-devel@... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
|
|
Re: No changes in cobertura.ser after testsSet the system property "net.sourceforge.cobertura.datafile" in the JVM to the desired location.
-Jake On Fri, Oct 23, 2009 at 5:28 AM, Khalid CHAABANE <khalid.chaabane@...> wrote: I use the --datafile option in both cobertura-instrument and ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Cobertura-devel mailing list Cobertura-devel@... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
|
|
Re: No changes in cobertura.ser after testsWhen running JUnit or testNG tests, we set the system property:
net.sourceforge.cobertura.datafile to achieve this. For example an extract from our Ant build.xml: <junit showoutput="true" haltonfailure="false" printsummary="on" timeout="${runtest.timeout}" maxmemory="${runtest.maxmemory}" fork="${junit.fork}" forkmode="perTest" tempdir="${test.logs.dir}"> <sysproperty key="net.sourceforge.cobertura.datafile" value="${cobertura.datafile}" /> <classpath refid="run.tests.classpath"/> <formatter type="xml"/> <batchtest todir="${test.logs.dir}" fork="${junit.fork}"> <fileset dir="${src.java}"> <include name="**/*Test.java"/> <include name="**/*TestSuite.java"/> </fileset> </batchtest> </junit> Regards Ed ----------------------------------------------------------- Ed Randall Senior Software Developer ----------------------------------------------------------- --- On Fri, 23/10/09, Khalid CHAABANE <khalid.chaabane@...> wrote: > From: Khalid CHAABANE <khalid.chaabane@...> > Subject: Re: [Cobertura-devel] No changes in cobertura.ser after tests > To: "John W. Lewis" <JohnW.Lewis@...> > Cc: "Cobertura-devel@..." <Cobertura-devel@...> > Date: Friday, 23 October, 2009, 10:28 AM > I use the --datafile option in both > cobertura-instrument and > cobertura-report, but the jvm generate the file in his > current > directory,so i want that the JVM generate the datafile in > the same > directory as the specified one with cobertura-instrument > and > cobertura-report. > > Khalid > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Cobertura-devel mailing list Cobertura-devel@... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
| Free embeddable forum powered by Nabble | Forum Help |