Jasmine JavaScript Testing (Update)
暫譯: Jasmine JavaScript 測試(更新版)

Paulo Ragonha

  • 出版商: Packt Publishing
  • 出版日期: 2015-04-30
  • 售價: $1,670
  • 貴賓價: 9.5$1,587
  • 語言: 英文
  • 頁數: 144
  • 裝訂: Paperback
  • ISBN: 1785282042
  • ISBN-13: 9781785282041
  • 相關分類: JavaScript
  • 海外代購書籍(需單獨結帳)

商品描述

Test your JavaScript applications efficiently using Jasmine and React.js

About This Book

  • Leverage the power of unit testing React.js to develop full-fledged JavaScript applications
  • Learn the best practices of modularization and code organization while scaling your application
  • Enhance your practical skills required to develop applications using the Jasmine framework in a step-by-step manner

Who This Book Is For

This book is for web developers and designers who work with React.js and JavaScript and who are new to unit testing and automation. It's assumed that you have a basic knowledge of JavaScript and HTML.

What You Will Learn

  • Understand and use the power of Jasmine to create better and more maintainable code bases
  • Drive your application development entirely by tests
  • Write modular and reusable code through the power of ECMA Script 6 (ES6) modules
  • Use asynchronous tests, stubs, and spies optimally
  • Test drive a React.js single-page application
  • Optimize your code to unleash the power of tooling and automation

In Detail

Take your testing of JavaScript applications to a new level of efficiency and reliability with the help of this book. Starting with the fundamentals of Jasmine and behavior-driven development (BDD), you will learn about tooling and automation. You will learn how to create a sustainable code base with the help of Jasmine. You will also take a look at integrated testing with React.js and Karma, and how you can speed this process up by faking AJAX requests. As you progress through the book, you will learn about the challenges of testing an application built on top of a framework and how you can prevent your application from suffering from dependency management. You will understand the concept of client-side and server-side rendering and test applications using React.js. You will also learn to automate using webpack and work with JavaScript module systems using ECMA Script 6 (ES6) modules.

By the end of this book, you will be a competent web developer with good knowledge and a strong understanding of how to efficiently use the Jasmine framework for testing purposes.

商品描述(中文翻譯)

**有效測試您的 JavaScript 應用程式,使用 Jasmine 和 React.js**

## 本書介紹
- 利用單元測試 React.js 的力量來開發完整的 JavaScript 應用程式
- 學習在擴展應用程式時的模組化和代碼組織最佳實踐
- 逐步增強使用 Jasmine 框架開發應用程式所需的實用技能

## 本書適合誰
本書適合與 React.js 和 JavaScript 一起工作的網頁開發者和設計師,特別是對單元測試和自動化不熟悉的讀者。假設您對 JavaScript 和 HTML 有基本的了解。

## 您將學到什麼
- 理解並使用 Jasmine 的力量來創建更好且更易於維護的代碼庫
- 完全通過測試驅動您的應用程式開發
- 通過 ECMA Script 6 (ES6) 模組的力量編寫模組化和可重用的代碼
- 最佳化使用非同步測試、存根和間諜
- 測試驅動一個 React.js 單頁應用程式
- 優化您的代碼以釋放工具和自動化的力量

## 詳細內容
本書將幫助您將 JavaScript 應用程式的測試提升到新的效率和可靠性水平。從 Jasmine 的基本原理和行為驅動開發 (BDD) 開始,您將學習有關工具和自動化的知識。您將學會如何利用 Jasmine 創建可持續的代碼庫。您還將了解如何與 React.js 和 Karma 進行集成測試,以及如何通過模擬 AJAX 請求來加快此過程。隨著您在書中的進展,您將學習到在框架上構建應用程式的測試挑戰,以及如何防止您的應用程式遭受依賴管理的困擾。您將理解客戶端渲染和伺服器端渲染的概念,並使用 React.js 測試應用程式。您還將學會使用 webpack 進行自動化,並使用 ECMA Script 6 (ES6) 模組處理 JavaScript 模組系統。

在本書結束時,您將成為一名合格的網頁開發者,具備良好的知識和對如何有效使用 Jasmine 框架進行測試的深刻理解。