[英]How to run JUnit tests from the command line instead of Intellij IDEA?
[英]How to run tests from the command line ? (IntelliJ Idea + Java +TestNG)
我是Java和IntelliJ環境的新手
我設法在IntelliJ中創建一個簡單的TestNG測試(只包含一個斷言)並運行它。
為了能夠從命令行運行,我需要執行哪些有序步驟
我嘗試了不同的方法,迄今為止沒有任何工作
最終我想運行selenium但是現在我只能運行那個簡單的斷言...
來自http://testng.org/doc/documentation-main.html#running-testng上的官方文檔
假設您的類路徑中有TestNG,調用TestNG的最簡單方法如下:
java org.testng.TestNG testng1.xml
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.