Код: Выделить всё
mvn clean test -Dsurefire.suiteXmlFiles=testng.xml
< /code>
Но я получаю эту ошибку: < /p>
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.080 s
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase ".suiteXmlFiles=testng.xml". You must specify a valid lifecycle phase or a goal in the format
: or :[:]:. Available lifecycle phases are: ...
Подробнее здесь: https://stackoverflow.com/questions/796 ... ng-command