logo
  • 教程列表
  • SO官方文檔
  • 單元測試
    • 單元 test.TestCase 中的測試設定和拆解
    • 斷言異常情況
    • 測試異常
    • 在 Unittests 中選擇斷言
    • 使用 unittest.mock.create autospec 模擬函式
    • 用 pytest 進行單元測試
  1. StackOverflow 文件
  2. Python Language 教程
  3. 單元測試

單元測試

Created: November-22, 2018

Python 有幾種單元測試工具。本文件主題介紹了基本的 unittest 模組。其他測試工具包括 py.test 和 nosetests。這篇關於測試的 python 文件比較了其中的幾個工具而沒有深入研究。

  • 單元 test.TestCase 中的測試設定和拆解

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明