Skip to Content
学习测试驱动开发
book

学习测试驱动开发

by Saleem Siddiqui
July 2025
Intermediate to advanced
280 pages
3h 5m
Chinese
O'Reilly Media, Inc.

Overview

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

您的代码是您作为开发人员技能的证明。无论您使用何种语言,代码都应简洁、优雅且条理清晰。通过使用测试驱动开发 (TDD),您可以编写出易于理解、保持优雅且在未来数月甚至数年内都能正常运行的代码。借助这本必不可少的指南,您将学习如何使用 TDD 以及三种不同的语言:Go、JavaScript 和 Python。

作者萨利姆·西迪基(Saleem Siddiqui)将向您展示如何通过单元测试驱动的方法应对领域复杂性。TDD将需求分解为小型可实现的功能,使您能够在不依赖特定语言或框架的情况下解决问题。借助《学习测试驱动开发》,您将学会如何将TDD融入日常编码实践。

本书将帮助您:

  • 运用TDD的分而治之方法应对领域复杂性
  • 理解TDD在不同语言、测试框架和领域概念中的工作原理
  • 学习TDD如何实现持续集成
  • 支持通过 TDD 进行重构和重新设计
  • 学习如何用 JavaScript 编写简单有效的单元测试框架
  • 使用 TDD 过程中生成的单元测试设置持续集成环境
  • 使用 Go、JavaScript 和 Python 中的 TDD 编写简洁、整洁的代码
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

AI原生软件交付

AI原生软件交付

Nick Durkin, Eric Minick, Chinmay Gaikwad
生成式人工智能可视化

生成式人工智能可视化

Priyanka Vergadia, Valliappa Lakshmanan

Publisher Resources

ISBN: 9798341663183