一、背景介紹
pytest提供了生成報告的功能。
使用pytest --help可以進行查看。
二、 生成測試報告
-v 顯示詳情
-q 只顯示匯總信息
-r 用chars標(biāo)識用例執(zhí)行結(jié)果,(f)ailed, (E)error, (s)skipped, (x)failed, (X)passed, (p)passed, (P)passed with output, (a)all except pP.
--disable-warning ,disable warnings summary
-l ,show locals in tracebacks (disabled by default)
--tb=style,traceback print mode (auto/long/short/line/native/no).
--tb=no
--full-trace don't cut any tracebacks (default is to cut).
--color=color color terminal output (yes/no/auto).
--color=no
--junit-xml=path , create junit-xml style report file at given path.
--html=path , create html report file at given path.
新聞名稱:1個練習(xí)引發(fā)的系列學(xué)習(xí)之pytest生成測試報告(三)-創(chuàng)新互聯(lián)
新聞來源:http://www.chinadenli.net/article20/dhssjo.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站設(shè)計、網(wǎng)站設(shè)計公司、動態(tài)網(wǎng)站、網(wǎng)站內(nèi)鏈、云服務(wù)器、用戶體驗
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容