Jasmine JavaScript Testing (Update)

Paulo Ragonha

  • 出版商: Packt Publishing
  • 出版日期: 2015-04-30
  • 售價: $1,550
  • 貴賓價: 9.5$1,473
  • 語言: 英文
  • 頁數: 144
  • 裝訂: Paperback
  • ISBN: 1785282042
  • ISBN-13: 9781785282041
  • 相關分類: JavaScript
  • 下單後立即進貨 (約3~4週)

相關主題

商品描述

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.

商品描述(中文翻譯)

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

關於本書



  • 利用單元測試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框架進行測試的網頁開發人員。