Test-Driven Development with React: Apply Test-Driven Development in Your Applications
暫譯: 使用 React 的測試驅動開發:在您的應用程式中應用測試驅動開發

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 的網頁應用程式。

透過更高的代碼質量,您將能夠使用 Cucumber 編寫可執行的文檔。這只是維持實用 TDD 工作流程的眾多要素之一,適用於您的日常工作負載。《Test-Driven Development with React》強調最佳實踐和設計模式,使您能夠編寫更易於維護和重用的 React 元件。

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

本書適合對象:
本書非常適合希望學習如何使用測試驅動開發編寫高質量代碼的網頁應用程式開發者。

作者簡介

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的單頁應用程式(SPA)。邱君濤知道如何通過應用適當的方法論來處理現實世界專案的複雜性,包括撰寫乾淨的程式碼和有效的自動化測試。他也是一位技術作者,已經出版了兩本中文書籍:《JavaScript核心概念與實踐(2013)》和《輕量級網頁應用程式開發(2015)》。他熱衷於撰寫部落格和在活動中演講,對於乾淨的程式碼、重構和測試驅動開發充滿熱情。此外,他在空閒時間還會練習泰拳和拳擊。