Test-Driven Development with Python: Obey the Testing Goat: Using Django, Selenium, and JavaScript 3/e
暫譯: 使用 Python 的測試驅動開發:遵循測試山羊:使用 Django、Selenium 和 JavaScript 第三版

Percival, Harry

  • 出版商: O'Reilly
  • 出版日期: 2025-12-09
  • 售價: $2,820
  • 貴賓價: 9.5$2,679
  • 語言: 英文
  • 頁數: 710
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1098148711
  • ISBN-13: 9781098148713
  • 相關分類: TDD 測試導向開發DjangoJavaScript
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

The third edition of this trusted guide demonstrates the practical advantages of test-driven development (TDD) with Python and describes how to develop a real web application. You'll learn how to write and run tests before building each part of your app and then develop the minimum amount of code required to pass those tests. The result? Clean code that works.

In the process, author Harry Percival teaches software and web developers the basics of Django, Selenium, Git, JavaScript, and Mock libraries, along with current web development techniques. This book--updated for Python 3.14 and Django 4--clearly demonstrates how TDD encourages simple designs and inspires confidence.

Fully updated, this third edition addresses:

  • The TDD workflow, including the unit test/code cycle and refactoring
  • Unit tests for classes and functions and functional tests for user interactions within the browser
  • Mock objects and the pros and cons of isolated versus integrated tests
  • Testing and automation of deployments with a staging server
  • Tests applied to the third-party plug-ins you integrate into your site
  • Automatic tests using a continuous integration environment
  • Using TDD to build a REST API with a JavaScript frontend interface

商品描述(中文翻譯)

第三版的這本可靠指南展示了使用 Python 進行測試驅動開發(TDD)的實際優勢,並描述了如何開發一個真正的網頁應用程式。您將學習如何在構建應用程式的每個部分之前編寫和運行測試,然後開發通過這些測試所需的最少代碼。結果是什麼?乾淨且有效的代碼。

在此過程中,作者 Harry Percival 教授軟體和網頁開發人員 Django、Selenium、Git、JavaScript 和 Mock 函式庫的基本知識,以及當前的網頁開發技術。本書已更新至 Python 3.14 和 Django 4,清楚地展示了 TDD 如何促進簡單設計並激發信心。

這本全面更新的第三版涵蓋了:

- TDD 工作流程,包括單元測試/代碼循環和重構
- 類和函式的單元測試,以及用戶在瀏覽器中互動的功能測試
- Mock 物件及其隔離測試與整合測試的優缺點
- 使用暫存伺服器進行測試和自動化部署
- 應用於您整合到網站中的第三方插件的測試
- 使用持續集成環境進行自動測試
- 使用 TDD 建立具有 JavaScript 前端介面的 REST API