testng-eclipse icon indicating copy to clipboard operation
testng-eclipse copied to clipboard

is there any way to set run testng jre Differ from project build jre (testng default use project build jre)

Open featherfly opened this issue 1 year ago • 1 comments

i use tesng for orm lib project project release with jdk8 but testng run with jdk11

i can run testng first ( it will be error ) and then click run -> run configrations to set testng jre to jdk11 for each so when i want to run a new test ( a method or a class) i will do twice is there any way to set run testng jre Differ from project build jre (testng default use project build jre)

The Dependency Management tool for your project

  • [ ] Maven
  • [x] Gradle
  • [ ] Ant
  • [ ] Eclipse Buildpath (aka. Use "TestNG Library" for your project in Eclipse)

Operating System

  • [x] Windows
  • [ ] Linux
  • [ ] OSX

featherfly avatar Apr 01 '24 08:04 featherfly

testng eclipse plugin use the project/build JRE, generally, the test should use the same JRE of build and runtime.

if you do want to use JRE 8, you may install an old version of the plugin https://github.com/testng-team/testng-eclipse/releases/tag/7.4.0.202106051955

missedone avatar Apr 01 '24 22:04 missedone

OK, now work correctly

featherfly avatar Jun 03 '24 10:06 featherfly