cobertura with dynamic class loading.......

View: New views
3 Messages — Rating Filter:   Alert me  

cobertura with dynamic class loading.......

by Madurai Muthu Eswaran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

can cobertura be used to cover code that is dynamically loaded,  please help is it possible???

I tried it, code coverage is not covering dynamically loaded classes. But if the same class is added  in classpath  code coverage is working fine.

In both scenario am using same instrumented folder. Can some one help me its urgent.

 

Regards,

Eswar    

Disclaimer:
If you have received this e-mail in error please notify the sender. 
Please note that any views or opinions presented in this e-mail are solely 
those of the author and do not necessarily represent those of TEMENOS. 
We recommend that you check this e-mail and any attachments against viruses. 
TEMENOS accepts no liability for any damage caused by any malicious code 
or virus transmitted by this e-mail.


------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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/devconf
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel

Parent Message unknown Re: cobertura with dynamic class loading.......

by Madurai Muthu Eswaran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi ,

 

I was trying with URLClassLoader, where cobertura was not able to cover the code. Instead I tried with default classloader where cobertura is able to get the coverage.

John , correct me if am worng.

 

Regards,

Eswar

 

From: Eswaran Muthu
Sent: Wednesday, September 23, 2009 11:09 AM
To: cobertura-devel@...
Subject: cobertura with dynamic class loading.......

 

Hi,

 

can cobertura be used to cover code that is dynamically loaded,  please help is it possible???

I tried it, code coverage is not covering dynamically loaded classes. But if the same class is added  in classpath  code coverage is working fine.

In both scenario am using same instrumented folder. Can some one help me its urgent.

 

Regards,

Eswar    

Disclaimer:
If you have received this e-mail in error please notify the sender. 
Please note that any views or opinions presented in this e-mail are solely 
those of the author and do not necessarily represent those of TEMENOS. 
We recommend that you check this e-mail and any attachments against viruses. 
TEMENOS accepts no liability for any damage caused by any malicious code 
or virus transmitted by this e-mail.


------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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/devconf
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel

Re: cobertura with dynamic class loading.......

by John W. Lewis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

 

Hi Eswaran,

 

You just have to make sure that the classloader is loading instrumented code.  It should work.

 

Can you send a small project showing what you trying to do?   If so, I will give you instructions on how to do that.

 

John

 

 

From: Eswaran Muthu [mailto:eswaranmuthu@...]
Sent: Wednesday, September 23, 2009 4:12 AM
To: cobertura-devel@...
Subject: Re: [Cobertura-devel] cobertura with dynamic class loading.......

 

Hi ,

 

I was trying with URLClassLoader, where cobertura was not able to cover the code. Instead I tried with default classloader where cobertura is able to get the coverage.

John , correct me if am worng.

 

Regards,

Eswar

 

From: Eswaran Muthu
Sent: Wednesday, September 23, 2009 11:09 AM
To: cobertura-devel@...
Subject: cobertura with dynamic class loading.......

 

Hi,

 

can cobertura be used to cover code that is dynamically loaded,  please help is it possible???

I tried it, code coverage is not covering dynamically loaded classes. But if the same class is added  in classpath  code coverage is working fine.

In both scenario am using same instrumented folder. Can some one help me its urgent.

 

Regards,

Eswar    

Disclaimer:
If you have received this e-mail in error please notify the sender. 
Please note that any views or opinions presented in this e-mail are solely 
those of the author and do not necessarily represent those of TEMENOS. 
We recommend that you check this e-mail and any attachments against viruses. 
TEMENOS accepts no liability for any damage caused by any malicious code 
or virus transmitted by this e-mail.
 

------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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/devconf
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel