Jasmine Cookbook
暫譯: Jasmine 食譜
Munish Sethi
- 出版商: Packt Publishing
- 出版日期: 2015-04-27
- 售價: $2,220
- 貴賓價: 9.5 折 $2,109
- 語言: 英文
- 頁數: 265
- 裝訂: Paperback
- ISBN: 1784397164
- ISBN-13: 9781784397166
海外代購書籍(需單獨結帳)
商品描述
Over 35 recipes to design and develop Jasmine tests to produce world-class JavaScript applications
About This Book
- A recipe-based approach to design and implement Jasmine specs for efficiently testing JavaScript jQuery, Ajax, and Fixtures
- Implement E2E (end-to-end) scenarios with Jasmine Spies and Custom Matchers
- Develop Jasmine specs to validate the output of a method, object, or unit using data-driven approach
Who This Book Is For
If you are a competent JavaScript developer who wants to design and implement tests using Jasmine in order to minimize bugs in the production environment, then this book is ideal for you. Some familiarity with unit testing and code coverage concepts such as branch coverage along with basic knowledge of Node.js, AngularJS, and CoffeeScript is required.
What You Will Learn
- Develop JavaScript applications with Jasmine using the behavior-driven development (BDD) process
- Apply custom matchers by enhancing your Jasmine tests to test specific features or functionality
- Design Jasmine specs for jQuery and Ajax with HTML and JSON fixtures
- Generate code coverage analysis for JavaScript code using Karma and Istanbul
- Create Jasmine tests for CoffeeScript and AngularJS
- Implement E2E (end-to-end) Jasmine specs for JavaScript applications to simulate a real-time scenario
In Detail
Jasmine provides a rich set of libraries to design and develop tests for JavaScript applications. Its tests aim to run on any JavaScript-enabled platform and have easy-to-read syntax.
This book is a comprehensive guide to designing and developing Jasmine tests to produce world-class software. The recipes are elaborated using examples from a real-world application, which involves various aspects of designing and developing tests from simple to complex level. You will learn how to create tests for jQuery and Ajax, HTML and JSON fixtures, CoffeeScript, and AngularJS. By learning and applying the best practices throughout this book, you can deliver your applications with zero defects and ensure success for you and your clients.
商品描述(中文翻譯)
**超過 35 個食譜,設計和開發 Jasmine 測試以產出世界級的 JavaScript 應用程式**
## 本書介紹
- 基於食譜的方法來設計和實現 Jasmine 規範,以有效測試 JavaScript jQuery、Ajax 和 Fixtures
- 使用 Jasmine Spies 和自訂匹配器實現 E2E(端到端)場景
- 使用數據驅動的方法開發 Jasmine 規範,以驗證方法、物件或單元的輸出
## 本書適合誰
如果您是一位有能力的 JavaScript 開發者,想要使用 Jasmine 設計和實現測試,以最小化生產環境中的錯誤,那麼這本書非常適合您。需要對單元測試和代碼覆蓋概念(如分支覆蓋)有一定的了解,以及對 Node.js、AngularJS 和 CoffeeScript 的基本知識。
## 您將學到什麼
- 使用行為驅動開發(BDD)過程,開發基於 Jasmine 的 JavaScript 應用程式
- 通過增強您的 Jasmine 測試來應用自訂匹配器,以測試特定功能或特性
- 為 jQuery 和 Ajax 設計使用 HTML 和 JSON fixtures 的 Jasmine 規範
- 使用 Karma 和 Istanbul 生成 JavaScript 代碼的覆蓋率分析
- 為 CoffeeScript 和 AngularJS 創建 Jasmine 測試
- 實現 JavaScript 應用程式的 E2E(端到端)Jasmine 規範,以模擬實時場景
## 詳細內容
Jasmine 提供了一套豐富的庫來設計和開發 JavaScript 應用程式的測試。其測試旨在在任何支持 JavaScript 的平台上運行,並具有易於閱讀的語法。
這本書是設計和開發 Jasmine 測試以產出世界級軟體的綜合指南。這些食譜使用來自真實應用程式的範例進行詳細說明,涵蓋了從簡單到複雜的測試設計和開發的各個方面。您將學會如何為 jQuery 和 Ajax、HTML 和 JSON fixtures、CoffeeScript 和 AngularJS 創建測試。通過學習和應用本書中的最佳實踐,您可以以零缺陷的方式交付您的應用程式,並確保您和您的客戶的成功。