简体   繁体   中英

is it necessary to install testng plugin when testng dependency is added in maven project

I have selenium maven project in which the dependency for the testng is added. But i'm not able to see the run as TestNG in the "run" options. should i install testng plugin for eclipse

For eclipse, the plugin is required if you want to run as TestNG. The only other alternative to run tests from eclipse would be, if you have the maven plugin installed, then you can still trigger your tests by running as mvn test, but testng plugin would definitely simplify stuff.

If you are running from maven either from command line or from Jenkins, then plugin is not required.

如果您将Intellij Idea作为IDE使用,则默认情况下它将可用,因此甚至不需要将其作为maven的依赖项,但是在日食的情况下,您必须明确安装它。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM