Error running TestNg tests in intellij 2019
Answered
I am facing issue while running testng tests in Intellij 2019.3.4 (Ultimate Edition)

The tests run fine from command-line and eclipse. I did search the community but I couldn't find any help on the same.
I haven't provided this option explicitly anywhere. JDK is 1.8
Please sign in to leave a comment.
This option may be present inside your pom.xml file and IntelliJ IDEA will load and use it automatically. See if disabling these options helps:
The reason it works for you in the command line and in the other IDEs is probably that you are using JDK 9+ there instead of JDK 1.8 in IntelliJ IDEA.
Serge Baranov That helped. Thanks a lot