Test-Driven Development with React: Apply Test-Driven Development in Your Applications

Qiu, Juntao

  • 出版商: Apress
  • 出版日期: 2021-05-20
  • 售價: $1,620
  • 貴賓價: 9.5$1,539
  • 語言: 英文
  • 頁數: 197
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1484269713
  • ISBN-13: 9781484269718
  • 相關分類: ReactTDD 測試導向開發
  • 立即出貨(限量) (庫存=1)

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

商品描述

Learn to use accelerated test-driven development (TDD) to build a React application from scratch. This book explains how your React components will be integrated, and how to refactor code to make it more concise and flexible.

With TDD you can develop a robust test suite to catch bugs, and develop modular, flexible code. Applying your understanding of how HTML, CSS, and JavaScript work in the browser you'll build a web application called Bookish using TDD and mainstream React stack technologies such as React, React-router, and Redux.

Using higher code quality you'll be able to write executable documentation using Cucumber. This is just one of many essentials in maintaining a practical TDD workflow in your daily workload. Test-Driven Development with React highlights best practices and design patterns that will enable you to write more maintainable and reusable React components.

What You'll Learn

  • Manage your application's state using Redux
  • Employ professional techniques for backend services
  • Use Cypress as an end-to-end testing framework
  • Utilize React-testing-library for unit and integration tests

Who This Book Is For

Ideal for web application developers who wants to learn how to write high quality code using Test-Driven Development.

商品描述(中文翻譯)

學習使用加速的測試驅動開發(TDD)從頭開始建立一個React應用程式。本書解釋了如何整合React元件,以及如何重構程式碼使其更簡潔和靈活。

透過TDD,您可以開發一個強大的測試套件來捕捉錯誤,並開發模組化、靈活的程式碼。應用您對HTML、CSS和JavaScript在瀏覽器中的工作原理的理解,您將使用TDD和主流的React技術堆疊(如React、React-router和Redux)來建立一個名為Bookish的Web應用程式。

通過提高程式碼質量,您將能夠使用Cucumber編寫可執行的文件。這只是在日常工作中維護實用的TDD工作流程中的許多基本要素之一。《React測試驅動開發》強調了最佳實踐和設計模式,使您能夠編寫更易於維護和重用的React元件。

您將學到什麼:
- 使用Redux管理應用程式的狀態
- 使用專業技術處理後端服務
- 使用Cypress作為端對端測試框架
- 使用React-testing-library進行單元和整合測試

適合對於使用測試驅動開發編寫高質量程式碼的Web應用程式開發人員。

作者簡介

Juntao Qiu is a senior web application developer at ThoughtWorks. Over the past ten years, he has helped his clients to build solid, extensible and high-quality web applications on a range of projects including traditional web applications using jQuery and JSP (Java Server Pages) to single page applications (SPAs) using Backbone, AngularJS, and React. Juntao knows how to handle the complexity of real-world projects by applying appropriate methodologies including writing clean code and effective automation tests. He also is a technical author who has already published two books in the Chinese language: JavaScript Core Concepts and Practices (2013) and Lightweight Web Application Development (2015). He is passionate about writing blogs and speaking at events. He has a real passion for clean code, refactoring, and Test-Driven Development. Additionally, he does Muay Thai and Boxing in his spare time.

作者簡介(中文翻譯)

邱俊濤是ThoughtWorks的高級網頁應用程式開發人員。在過去的十年中,他幫助客戶建立了堅固、可擴展和高品質的網頁應用程式,涵蓋了各種項目,包括使用jQuery和JSP(Java Server Pages)的傳統網頁應用程式,以及使用Backbone、AngularJS和React的單頁應用程式(SPAs)。邱俊濤知道如何應對現實世界項目的複雜性,並運用適當的方法論,包括編寫乾淨的程式碼和有效的自動化測試。他還是一位技術作家,已經在中文語言中出版了兩本書籍:《JavaScript核心概念與實踐(2013年)》和《輕量級網頁應用程式開發(2015年)》。他熱衷於撰寫部落格並在活動中演講。他對乾淨的程式碼、重構和測試驅動開發有著真正的熱情。此外,他在空閒時間還從事泰拳和拳擊運動。