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

后端 未结 2 980
有刺的猬
有刺的猬 2021-01-05 01:42

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

相关标签:
2条回答
  • 2021-01-05 01:53

    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.

    0 讨论(0)
  • 2021-01-05 02:03
    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.

    0 讨论(0)
提交回复
热议问题