我運行的運行一些紐曼測試,併產生JUnit測試結果文件,看起來像一個詹金斯工作:詹金斯測試結果分析儀正在呈現持續時間錯
<?xml version="1.0" encoding="UTF-8"?> <testsuites name="Basic Regression All"> <testsuite name="Login" id="02d5167b-ce9c-4ba4-9b24-e0a5c142768f" tests="2" time="628"> <testcase name="Successful Login"/> <testcase name="Auth Token is not null"/> </testsuite> <testsuite name="Account Summary" id="18773a24-2e3a-4c7d-99c3-921c4e41541b" tests="1" time="290"> <testcase name="Successfully Retreived Accounts"/> </testsuite> <testsuite name="Account Balances" id="d0817e78-8a25-4bc2-9301-3b4ef954600a" tests="1" time="337"> <testcase name="Successfully Retreived Balances"/> </testsuite>
出於某種原因,時間字段讀由「測試結果分析儀」插件爲秒而不是毫秒,如附圖所示。 任何有關這裏發生的事情的線索都會有所幫助。 另外我使用的是最新版本的兩個「測試結果分析儀」和JUnit的,所以如果有人更好詹金斯插件使用的知道請分享