python測試模塊pytest之坑

pytest是pyhon測試代碼模塊,只要你安裝了pytest就能夠生成txt,xml,html等測試結果集,注意:生成html須要安裝pytest-html模塊。 pytest會尋找test或者test_開頭的函數,Test開頭的類去測試。我在使用pytest的時候就遇到了大坑,總結一下html 不少教程都是這麼教的:py.test test_class.py –html=.\report.ht
相關文章
相關標籤/搜索