Specifying a specific testng test or group run in a seperate jvm

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Specifying a specific testng test or group run in a seperate jvm

salilsurendran
Hello,
    We have a requirement where certain tests are required to run in a seperate jvm. Using reuseForks=false in maven will run each test class in a seperate jvm but this will slow down the whole test run significantly. Is it possible to annotate a testng test with a particular annotation so that maven runs it in a seperate jvm.
Reply | Threaded
Open this post in threaded view
|

Re: Specifying a specific testng test or group run in a seperate jvm

⇜Krishnan Mahadevan⇝

I don't think this mechanism exists in Testng as such. You may have to try the surefire Testng plug in forum [assuming there is one ]

There are two parts to your problem.
1. You need a custom annotation to do this.
2. You need the corresponding changes in surefire plug in so that it honors this annotation and does this.

Perhaps you may end up having to build all of this on your own.

Just curious. What is your scenario which needs this ?

On Aug 28, 2014 6:17 AM, "salilsurendran" <[hidden email]> wrote:
Hello,
    We have a requirement where certain tests are required to run in a
seperate jvm. Using reuseForks=false in maven will run each test class in a
seperate jvm but this will slow down the whole test run significantly. Is it
possible to annotate a testng test with a particular annotation so that
maven runs it in a seperate jvm.



--
View this message in context: http://testng.1065351.n5.nabble.com/Specifying-a-specific-testng-test-or-group-run-in-a-seperate-jvm-tp20335.html
Sent from the testng-users mailing list archive at Nabble.com.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.