Currently, I am using TestNG 6.8 with Maven, but when I run the test through the IntelliJ IDEA plugin, it uses an old version of TestNG.
How can I make IntelliJ IDEA
Here's a better way: In "Project Structure" -> "Modules" -> "Dependencies", click the left bottom "+" to add a new dependency from either pre-downloaded jar file, or library from Maven repository. Remember to remove the old TestNG version, or move the new version to above that.
IDEA\plugins\testng\lib\testng-jdk15.jar
.testng-6.8.jar
from the downloaded zip into IDEA\plugins\testng\lib
.For IDEA 12+: replace testng.jar
instead of testng-jdk15.jar
.