Skip to Content
Python测试驱动开发实践, 3rd Edition
book

Python测试驱动开发实践, 3rd Edition

by Harry Percival
October 2025
Intermediate to advanced
712 pages
8h 38m
Chinese
O'Reilly Media, Inc.

Overview

本作品已使用人工智能进行翻译。欢迎您提供反馈和意见:translation-feedback@oreilly.com

这本值得信赖的指南第三版通过Python演示了测试驱动开发(TDD)的实际优势,并详述了如何开发真实的Web应用程序。您将学会在构建应用程序的每个部分之前编写并运行测试,然后仅编写通过这些测试所需的最小代码量。结果如何?既简洁又可靠的代码。

作者哈里·珀西瓦尔在书中系统传授软件与网页开发者Django框架、Selenium测试工具、Git版本控制、JavaScript编程及Mock模拟库等核心技术,并结合前沿网络开发实践。本书针对Python 3.14及Django 4版本全面更新,清晰阐释TDD如何促进简洁设计并增强开发信心。

全面更新的第三版涵盖:

  • TDD工作流,包含单元测试/代码迭代循环及重构实践
  • 类与函数的单元测试,以及浏览器内用户交互的功能测试
  • 模拟对象及独立测试与集成测试的优劣分析
  • 基于预发布环境的部署测试与自动化
  • 针对网站集成第三方插件的测试方案
  • 基于持续集成环境的自动化测试
  • 运用测试驱动开发构建带JavaScript前端接口的REST API
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python入门指南, 3rd Edition

Python入门指南, 3rd Edition

Bill Lubanovic
算法精讲视频课程:24篇系列讲座

算法精讲视频课程:24篇系列讲座

罗伯特·塞奇威克, 凯文·韦恩(Kevin Wayne)
Python-Tricks

Python-Tricks

Dan Bader
AI工程

AI工程

Chip Huyen

Publisher Resources

ISBN: 0642572274801