[英]Only the last @Test is being executed when using IMethodInterceptor as Listener in TestNG
[英]When TestNG suite is executed, older versions of test class are being used
對於每個測試用例,我都有不同的 class。 當我更改代碼並運行該測試套件時,正在使用舊版本的代碼。
例如:
舊代碼
logger.info("Older code");
新代碼:
logger.info("New code");
當我運行測試套件時,記錄器會打印出“舊代碼”消息。
我注意到的是。 在本地 Maven 項目上不會出現此問題,但在 git 項目上會出現此問題。
您需要提交更改並推送到遠程存儲庫。
在控制台中運行(在您的項目文件夾中)
git add.
git commit -m "Some changes"
git push origin %branch_name%
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.