Re: Cobertura version 2.3 fails the JUnit test cases

2010-04-10 Thread Wayne Fay
> It seems that Maven 2.1 has many issues? So many problem in the mailing list
> is occurred in Maven 2.1.

Yes, it has problems, and should not be used. As such, you will see
2.2.1 is the primary download on the Maven website, and 2.0.11 is the
archive release.

No one should be running 2.1. If you are, you should move off it asap.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Cobertura version 2.3 fails the JUnit test cases

2010-04-10 Thread Garin Yan
It seems that Maven 2.1 has many issues? So many problem in the mailing list
is occurred in Maven 2.1.

On Sat, Apr 10, 2010 at 11:03 PM, Wayne Fay  wrote:

> > Actually I am using cobertura maven plug-in version 2.3 with maven
> version
> > 2.1.
>
> I have no idea if it will help, but try Maven 2.2.1. You should not be
> running 2.1, it has issues.
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Garin Yan

Software Engineer, International Service
Founder International Co.,Ltd.
Address: Suzhou International Science Park (Phase V)
 328 Xinghu Rd., Suzhou, Jiangsu, P.R.China, 215123
Tel:+86 512 86665500-7063  Fax:+86 512 87183808  Cell:151 0621 9276
yangu...@gmail.com  ||  www.founderinternational.com

Enjoying 20 years of success satisfying global leaders with every IT need --
Founder’s 30,000 employees are committed to helping you succeed.


Re: Cobertura version 2.3 fails the JUnit test cases

2010-04-10 Thread Wayne Fay
> Actually I am using cobertura maven plug-in version 2.3 with maven version
> 2.1.

I have no idea if it will help, but try Maven 2.2.1. You should not be
running 2.1, it has issues.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Cobertura version 2.3 fails the JUnit test cases

2010-04-10 Thread Stephen Connolly
This sounds like more of an issue with cobertura than maven.

I would suggest you try asking the cobertura guys/gals.

As a pointer, I'm betting some of your classes do no have their explicit
serialVersionUID defined.  If those classes are used in the EJB remote
calls, then the instrumented versions of the classes will have a different
implicit serialVersionUID's from the non-instrumented ones loaded by the EJB
classloader to handle the remote end receiving the calls... and vice versa,
any results from the EJB remote invocations will have the same issue.

One workaround is to generate serialVersionUID constants for all your
classes that are marked Serializable (which is good practice anyway), that
might get you a step farther, but I suspect that you'll have to follow up
with the Cobertura guys/gals anyway.

-Stephen

P.S.
  If you find the actual solution after talking to the cobertura guys/gals
can you please post the results to this thread so that others may benifit
from your learnings

On 10 April 2010 04:50, aabhijit  wrote:

>
>
> Actually I am using cobertura maven plug-in version 2.3 with maven version
> 2.1.
> In my JUnits I have DB and EJB calls. During the build I use surefire maven
> plugin property “forkMode=always” and with this property the unit test
> cases
> pass properly.  Otherwise Surefire plugin has problem running JUnits and
> they fail.
>
> Now during the cobertura:cobertura stage the many test cases fail. The DB
> test cases fail at the executing the DB call (remote calls) and while
> running EJB calls I get serialVersionUID mismatch exceptions. I tried
> instrumenting only the classes under the current module as I believe
> instrumentation of the other classes might be giving this SerialVersionUID
> mismatch but no luck.
>
> This is multimodule maven build with around 70 artifacts being build in
> that
> build. Even with the single module build the cobertura test cases fail.
>
> Since the test cases fail we are not able to see the code coverage.
>
> I would be extremely thankful if you guys can help me to locate the
> problem.
>
> --
> View this message in context:
> http://old.nabble.com/Cobertura-version-2.3-fails-the-JUnit-test-cases-tp28199798p28199798.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>