JavaScript Testing with Jasmine: JavaScript Behavior-Driven Development (Paperback) (JavaScript 測試與 Jasmine:JavaScript 行為驅動開發)
Evan Hahn
- 出版商: O'Reilly
- 出版日期: 2013-05-07
- 定價: $675
- 售價: 9.5 折 $641
- 貴賓價: 9.0 折 $608
- 語言: 英文
- 頁數: 54
- 裝訂: Paperback
- ISBN: 1449356370
- ISBN-13: 9781449356378
-
相關分類:
JavaScript
立即出貨 (庫存=1)
買這商品的人也買了...
-
$880$695 -
$550$495 -
$300$255 -
$680$537 -
$580$452 -
$1,130$961 -
$400$380 -
$950$903 -
$480$408 -
$880$695 -
$580$458 -
$300$255 -
$1,646Operating System Concepts, 9/e (IE-Paperback)
-
$480$379 -
$780$663 -
$680$578 -
$300$234 -
$80$76 -
$450$356 -
$500$395 -
$350$298 -
$420$332 -
$620$527 -
$560$442 -
$2,000$1,960
相關主題
商品描述
Get a concise introduction to Jasmine, the popular behavior-driven testing framework for JavaScript. This practical guide shows you how to write unit tests with Jasmine that automatically check for bugs in your application. Learn how to write specifications for individual components, and then use those specs to test the code you write.
Throughout the book, author Evan Hahn focuses primarily on methods for testing browser-based JavaScript applications, but you’ll also discover how to use Jasmine with CoffeeScript, Node.js, Ruby on Rails, and Ruby without Rails. You won’t find a more in-depth source for Jasmine anywhere.
- Get an overview of both test-driven and behavior-driven development
- Write useful specs by determining what you need to test—and what you don’t
- Test the behavior of new and existing code against the specs you create
- Apply Jasmine matchers and discover how to build your own
- Organize code suites into groups and subgroups as your code becomes more complex
- Use a Jasmine spy in place of a function or an object—and learn why it’s valuable
商品描述(中文翻譯)
獲取有關Jasmine的簡明介紹,Jasmine是一個流行的JavaScript行為驅動測試框架。這本實用指南將向您展示如何使用Jasmine編寫單元測試,以自動檢查應用程序中的錯誤。學習如何為個別組件編寫規範,然後使用這些規範來測試您編寫的代碼。
在整本書中,作者Evan Hahn主要關注測試基於瀏覽器的JavaScript應用程序的方法,但您還將發現如何在CoffeeScript、Node.js、Ruby on Rails和Ruby without Rails中使用Jasmine。您將找不到比這更深入的Jasmine資源。
- 獲取測試驅動和行為驅動開發的概述
- 通過確定您需要測試的內容以及不需要測試的內容來編寫有用的規範
- 根據您創建的規範測試新代碼和現有代碼的行為
- 應用Jasmine匹配器並了解如何構建自己的匹配器
- 隨著代碼變得更加複雜,將代碼套件組織成組和子組
- 使用Jasmine spy替代函數或對象,並了解其價值所在