一、背景介紹
pytest提供了生成報(bào)告的功能。
使用pytest --help可以進(jìn)行查看。
二、 生成測(cè)試報(bào)告
-v 顯示詳情
-q 只顯示匯總信息
-r 用chars標(biāo)識(shí)用例執(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個(gè)練習(xí)引發(fā)的系列學(xué)習(xí)之pytest生成測(cè)試報(bào)告(三)-創(chuàng)新互聯(lián)
新聞來(lái)源:http://chinadenli.net/article20/dhssjo.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站設(shè)計(jì)、網(wǎng)站設(shè)計(jì)公司、動(dòng)態(tài)網(wǎng)站、網(wǎng)站內(nèi)鏈、云服務(wù)器、用戶體驗(yàn)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容