Python logo

目錄

  • unittest --- 單元測試框架
    • 簡單範例
    • 命令列介面
      • 命令列模式選項
    • Test Discovery(測試探索)
    • Organizing test code
    • Re-using old test code
    • Skipping tests and expected failures
    • Distinguishing test iterations using subtests
    • 類別與函式
      • Test cases
      • Grouping tests
      • Loading and running tests
        • load_tests 協定
    • Class and Module Fixtures
      • setUpClass 和 tearDownClass
      • setUpModule 和 tearDownModule
    • Signal Handling

上個主題

doctest --- 測試互動式 Python 範例

下個主題

unittest.mock — mock 物件函式庫

此頁面

  • 回報錯誤
  • 改進此頁面
  • 顯示原始碼
  • 顯示翻譯原始碼

導航

  • 索引
  • 模組 |