Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set up default TestNG launch configuration in Eclipse

Tags:

eclipse

testng

I'm running quite a few TestNG tests in Eclipse, but for each one, I need to pass in the same VM arguments. Is there any way to set this to be default, so I don't have to enter it each time I write a new test?

Thanks!

like image 911
dzy Avatar asked May 15 '26 05:05

dzy


1 Answers

Well, that is quite problemmatic, probably the easiest workaround is to set them globally (Preferences -> TestNG -> Run/Debug -> JVM args).

Otherwise, if you create a run configuration for the test package, you can also set it there.

like image 133
rlegendi Avatar answered May 18 '26 22:05

rlegendi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!