Test-Driven JavaScript Development (Paperback)

Christian Johansen

  • 出版商: Addison Wesley
  • 出版日期: 2010-09-09
  • 售價: $1,980
  • 貴賓價: 9.5$1,881
  • 語言: 英文
  • 頁數: 528
  • 裝訂: Paperback
  • ISBN: 0321683919
  • ISBN-13: 9780321683915
  • 相關分類: JavaScriptTDD 測試導向開發
  • 立即出貨

買這商品的人也買了...

商品描述

For JavaScript developers working on increasingly large and complex projects, effective automated testing is crucial to success. Test-Driven JavaScript Development is a complete, best-practice guide to agile JavaScript testing and quality assurance with the test-driven development (TDD) methodology. Leading agile JavaScript developer Christian Johansen covers all aspects of applying state-of-the-art automated testing in JavaScript environments, walking readers through the entire development lifecycle, from project launch to application deployment, and beyond.

Using real-life examples driven by unit tests, Johansen shows how to use TDD to gain greater confidence in your code base, so you can fearlessly refactor and build more robust, maintainable, and reliable JavaScript code at lower cost. Throughout, he addresses crucial issues ranging from code design to performance optimization, offering realistic solutions for developers, QA specialists, and testers.

Coverage includes
•    Understanding automated testing and TDD
•    Building effective automated testing workflows
•    Testing code for both browsers and servers (using Node.js)
•    Using TDD to build cleaner APIs, better modularized code, and more robust software
•    Writing testable code
•    Using test stubs and mocks to test units in isolation
•    Continuously improving code through refactoring
•    Walking through the construction and automated testing of fully functional software

The accompanying Web site, tddjs.com, contains all of the book’s code listings and additional resources.

商品描述(中文翻譯)

對於在日益龐大且複雜的專案上工作的 JavaScript 開發人員來說,有效的自動化測試對於成功至關重要。《Test-Driven JavaScript Development》是一本完整的、最佳實踐指南,介紹了在 JavaScript 環境中使用測試驅動開發(TDD)方法進行敏捷 JavaScript 測試和品質保證的所有方面。領先的敏捷 JavaScript 開發人員 Christian Johansen 詳細介紹了如何應用最先進的自動化測試技術,從專案啟動到應用部署以及更多階段,全程引導讀者進行開發。

Johansen 通過單元測試驅動的實例展示了如何使用 TDD 在程式碼庫中獲得更大的信心,以便無懼地進行重構,並以更低的成本構建更強大、可維護和可靠的 JavaScript 程式碼。在整個過程中,他解決了從程式碼設計到性能優化的關鍵問題,為開發人員、QA 專家和測試人員提供了實際的解決方案。

內容包括:
•    理解自動化測試和 TDD
•    構建有效的自動化測試工作流程
•    測試瀏覽器和伺服器上的程式碼(使用 Node.js)
•    使用 TDD 構建更乾淨的 API、更好的模組化程式碼和更強大的軟體
•    編寫可測試的程式碼
•    使用測試存根和模擬來進行單元測試
•    通過重構不斷改進程式碼
•    逐步介紹完全功能軟體的構建和自動化測試

附帶的網站 tddjs.com 包含了本書的所有程式碼清單和其他資源。