Suddenly can't run TestNG tests from ant ([testng] Caused by: java.lang.ClassNotFoundException: com.beust.jcommander.ParameterException)

后端 未结 7 1441
走了就别回头了
走了就别回头了 2020-12-01 21:29

I am using ant and TestNG 6.1.1, and I had my tests working just fine yesterday. Today when I try to run the tests I get a NoClassDefFoundError involving com/beust/jcommand

相关标签:
7条回答
  • 2020-12-01 22:25

    I had this same problem with a non-Maven project. I retrieved the testng jar from Maven Central, but it didn't contain all of TestNG's dependencies. Downloading the jar directly from the TestNG site resolved the issue, as it contains the dependencies.

    I should have paid more attention to the directions on TestNG's download page...

    The latest version of TestNG can be downloaded from Maven Central or here for ant users.

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