Re: Issue with running junit tests in parallel

2012-03-01 Thread akhilhingane
Hi Kristian,

I read in some other thread, that you also fixed some concurrency issues
with surefire-junit in 4.8.1. Could that be a reason for the same test class
to be picked simultaneously by two forked test runners.

Regards,
Akhil

--
View this message in context: 
http://maven.40175.n5.nabble.com/Issue-with-running-junit-tests-in-parallel-tp5524181p5528028.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



Re: Issue with running junit tests in parallel

2012-03-01 Thread Kristian Rosenvold
Try; in this order:

A) Use mvn help:effective-pom and analyze your surefire configuration
and see if you have multiple executions

B) Run
mvn -X clean install
cd target/surefire
grep classnameyouthinkisbeingruntwice *

The folder you are in contains all the specifications used to start
the forks, if the same class has been run multiple times, it
will be repeated in multiple files. You should find the class at least once ;)

Kristian

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



Re: Issue with running junit tests in parallel

2012-03-01 Thread akhilhingane
As you mentioned, the classes which are picked up twice are indeed present in
two files under target/surefire

Regards,
Akhil

--
View this message in context: 
http://maven.40175.n5.nabble.com/Issue-with-running-junit-tests-in-parallel-tp5524181p5530236.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



Re: Issue with running junit tests in parallel

2012-02-29 Thread akhilhingane
I ran 'mvn clean install'. But I still see that some test cases are being
picked up by more than one parallel runners. This occurs randomly. Can there
be some issue with the junit provider? 
The configuration for the provider
dependencies
dependency
groupIdorg.apache.maven.surefire/groupId
artifactIdsurefire-junit47/artifactId
version2.12/version
/dependency
/dependencies

Regards,
Akhil

--
View this message in context: 
http://maven.40175.n5.nabble.com/Issue-with-running-junit-tests-in-parallel-tp5524181p5525083.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



Issue with running junit tests in parallel

2012-02-28 Thread akhilhingane
Hi,

   I am using maven-surefire-plugin 2.12. I intend to run test classes in
parallel and fork per test class; for which the relevant settings are as
follows. 

forkModeperthread/forkMode
parallelclasses/parallel
threadCount2/threadCount
perCoreThreadCountfalse/perCoreThreadCount


I see that the same test class is picked twice. Is the combination of above
configuration properties incorrect?

Regards,
Akhil

--
View this message in context: 
http://maven.40175.n5.nabble.com/Issue-with-running-junit-tests-in-parallel-tp5524181p5524181.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



Re: Issue with running junit tests in parallel

2012-02-28 Thread Kristian Rosenvold
The configuration looks correct; make sure you run mvn clean install;
maybe you have some earlier versions in target.

Kristian


2012/2/29 akhilhingane akhil.hing...@gmail.com:
 Hi,

   I am using maven-surefire-plugin 2.12. I intend to run test classes in
 parallel and fork per test class; for which the relevant settings are as
 follows.

        forkModeperthread/forkMode
        parallelclasses/parallel
        threadCount2/threadCount
        perCoreThreadCountfalse/perCoreThreadCount


 I see that the same test class is picked twice. Is the combination of above
 configuration properties incorrect?

 Regards,
 Akhil

 --
 View this message in context: 
 http://maven.40175.n5.nabble.com/Issue-with-running-junit-tests-in-parallel-tp5524181p5524181.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


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