Python單元測試框架之pytest -- 生成測試報告

繼續pytest單元測試框架的學習,pytest可以生成多種類型的測試報告。這一節就來學習pytest如何生成測試報告。   創建test_calss.py 測試用例文件,這裏以測試該文件爲例。 #coding=utf-8 class TestClass: def test_one(self): x = "this" assert "h" in x def test_two(se
相關文章
相關標籤/搜索