简体   繁体   中英

Maven start TestNG tests from jar

I have several TestNG tests exists in my Maven project. Jar file created by Maven using: mvn clean package -DskipTests

How I can pass testng.xml file with defined tests to run into that jar file?

Thank you

You could use the <suiteXmlFile> option of maven surefire plugin for this. This documentation details it.

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