Jasmine JavaScript Testing, 2nd Edition

0
(0)

Jasmine JavaScript Testing, 2nd Edition
 

  • Author:Paulo Ragonha
  • Length: 144 pages
  • Edition: 2
  • Publisher: Packt Publishing
  • Publication Date: 2015-03-31
  • ISBN-10: 1785282042
  • ISBN-13: 9781785282041
  • Sales Rank: #2185093 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    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.

    Table of Contents

    Chapter 1: Getting Started with Jasmine
    Chapter 2: Your First Spec
    Chapter 3: Testing Frontend Code
    Chapter 4: Asynchronous Testing – AJAX
    Chapter 5: Jasmine Spies
    Chapter 6: Light Speed Unit Testing
    Chapter 7: Testing React Applications
    Chapter 8: Build Automation

    中文:

    书名:Jasmine JavaScript Testing, 2nd Edition

    使用Jasmine和React.js高效地测试您的JavaScript应用程序

    About This Book

    • Leverage the power of unit testing React.js to develop full-fledged JavaScript applications
    • 在扩展应用程序时了解模块化和代码组织的最佳实践
    • 逐步增强使用Jasmine框架开发应用程序所需的实践技能

    这本书是为谁写的

    本书面向使用React.js和JavaScript的Web开发人员和设计人员,以及单元测试和自动化方面的新手。本文假定您对Java脚本和HTML有基本的了解。

    你将学到什么

    • 理解并使用茉莉的力量来创建更好、更易维护的代码库
    • 完全通过测试驱动您的应用程序开发
    • 通过ECMA脚本6(ES6)模块的强大功能编写模块化和可重用的代码
    • Use asynchronous tests, stubs, and spies optimally
    • 测试驱动React.js单页面应用程序
    • 优化您的代码以释放工具和自动化的力量

    In Detail

    在这本书的帮助下,将您的JavaScript应用程序测试提升到一个新的效率和可靠性水平。从茉莉花和行为驱动开发(BDD)的基础开始,您将学习工具和自动化。您将学习如何在Jasmine的帮助下创建可持续的代码库。您还将了解使用React.js和Karma进行的集成测试,以及如何通过伪造AJAX请求来加快此过程。随着本书的进展,您将了解到测试构建在框架之上的应用程序的挑战,以及如何防止您的应用程序受到依赖项管理的影响。您将了解客户端和服务器端呈现的概念,并使用React.js测试应用程序。您还将学习使用webpack实现自动化,并使用ECMA SCRIPT 6(ES6)模块处理JavaScript模块系统。

    到本书结束时,您将成为一名称职的Web开发人员,具有良好的知识,并对如何有效地使用Jasmine框架进行测试有很强的理解。

    Table of Contents

    第1章:茉莉入门
    第2章:您的第一个规范
    Chapter 3: Testing Frontend Code
    第4章:异步测试–AJAX
    第5章:茉莉花间谍
    第6章:光速单元测试
    第7章:测试Reaction应用程序
    第8章:构建自动化

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册