[英]How can I run all junit tests in a package and below (recursively) by right clicking the package on eclipse and selecting “Run as JUnit test”
[英]CI/CD Junit tests: should I build the package first or I can run the test firsts?
關於 CI/CD 的管道,當您想從管道運行所有 junit 測試時,您應該首先構建代碼然后運行測試,或者您可以先運行測試,如果它們通過運行構建?
腳步:
這是命令嗎?
考慮一個帶有 Maven 的經典環境,您可以在其中運行mvnw test
來運行測試。
我問這個是因為例如在這個視頻中,首先是構建步驟,然后是測試步驟
我回答自己:要運行編譯語言(Java、C++ 等)的測試,您需要先構建。
對於不需要編譯的解釋語言,您可以簡單地運行測試
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.