Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update IntelliJ IDEA testing-plugin to TestNG version 6.8?

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 (version 11.1.4) work with TestNG 6.8?

like image 535
user1835346 Avatar asked Nov 19 '12 11:11

user1835346


2 Answers

  1. Download the complete TestNG 6.8 zip.
  2. Delete IDEA\plugins\testng\lib\testng-jdk15.jar.
  3. Copy testng-6.8.jar from the downloaded zip into IDEA\plugins\testng\lib.

For IDEA 12+: replace testng.jar instead of testng-jdk15.jar.

like image 100
CrazyCoder Avatar answered Oct 07 '22 05:10

CrazyCoder


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.

like image 40
jhtfl Avatar answered Oct 07 '22 03:10

jhtfl