python 單元測試出現 Ran 0 tests in 0.000s OK

python 單元測試出現 Ran 0 tests in 0.000s OK 1、測試的函數沒有以test開頭 2、在unittest.main()的前面沒有 if name == ‘main’: 3、你測試的類沒有繼承unittest.TestCase
相關文章
相關標籤/搜索