From: Jake C. <jak...@ga...> - 2010-08-13 14:22:55
|
Cobertura adds the net.sourceforge.cobertura.coveragedata.HasBeenInstrumented interface to classes it instruments, probably disturbing some ordering assumption of your reflection method. -Jake On Fri, Aug 13, 2010 at 10:16 AM, Em DauPhu <emd...@gm...> wrote: > Hi, > > Just a little update. > > After some debugging with the developers, we found a way around, a way > to make these tests pass after being instrumented. > I can't say I know what is going on now we found that the test was > failing around some proprietary function returning the upper interface > for a class name given in parameter (class<?>). > We might ask ourselves if this function is wrong but anyway, it isn't > failing while not instrumented and it does with cobertura. > > We're currently trying to make an example out of it to see what is > really failing. I'll report it then. > > On Tue, Aug 10, 2010 at 4:36 PM, John W. Lewis <Joh...@sa...> > wrote: > > > > Assuming the object is a member/field of a class, I would set a > breakpoint on it. Then, the debugger should stop when the field is being > modified or accessed. Then, you can see if the field is ever set with > instrumented code or not. Or, maybe you can see what is making it null > after it is set. > > > > Otherwise, can you create a small project where this behavior is > exhibited and submit a bug report with it? I could take a look at it then. > > > > John > > > > > > -----Original Message----- > > From: Em DauPhu [mailto:emd...@gm...] > > Sent: Tuesday, August 10, 2010 8:34 AM > > To: cobertura-devel > > Subject: [Cobertura-devel] Debug within eclipse with Cobertura > > > > Hi, > > > > I'm coming back with the problem I have executing tests with cobertura > instrumented classes. > > I'm debugging the tests inside eclipse switching between the normal > testng configuration and the one using instrumented classes. > > > > The behavior is just not the same. My test fail but it's just like if > some objects get unreferenced or disappeared. > > I can't go further in my test because I got to the point where I check if > the object isn't null and without instrumented classes, it isn't and with > instrumented classes, it is null... > > > > Can anyone explain me how can I go further in the debug process ? I saw > some cobertura values in the debugger, should I look for something ? (it was > just line and branch values) > > > > Thank you by advance. > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by > > > > Make an app they can't live without > > Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev_______________________________________________ > > Cobertura-devel mailing list > > Cob...@li... > > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > |