Jasmine Cookbook

0
(0)

Jasmine Cookbook
 

  • Author:Munish Sethi
  • Length: 265 pages
  • Edition: 1
  • Publisher: Packt Publishing
  • Publication Date: 2015-04-30
  • ISBN-10: 1784397164
  • ISBN-13: 9781784397166
  • Sales Rank: #3253434 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    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.

    Table of Contents

    Chapter 1: Getting Started with Jasmine Framework
    Chapter 2: Jasmine with TDD and BDD Processes
    Customizing Matchers and Jasmine Chapter 3: Functions
    Chapter 4: Designing Specs from Requirement
    Chapter 5: Jasmine Spies
    Chapter 6: Jasmine with AJAX, jQuery, and Fixtures
    Chapter 7: Code Coverage with Jasmine Tests
    Chapter 8: Jasmine with Other Tools
    Chapter 9: Developing JavaScript Apps Using Jasmine – a Real-time Scenario

    中文:

    书名:Jasmine Cookbook

    设计和开发茉莉花测试的超过35个食谱,以生成世界级的JavaScript应用程序

    About This Book

    • 一种基于配方的方法来设计和实现茉莉花规范,以高效地测试JavaScript jQuery、AJAX和装备
    • 使用茉莉花间谍和自定义匹配器实施E2E(端到端)场景
    • 开发茉莉花规范,以使用数据驱动方法验证方法、对象或单元的输出

    这本书是为谁写的

    如果您是一名有能力的JavaScript开发人员,希望使用Jasmine来设计和实现测试,以最大限度地减少生产环境中的错误,那么这本书非常适合您。需要熟悉单元测试和代码覆盖概念,如分支覆盖,以及Node.js、AngularJS和CoffeeScript的基本知识。

    What You Will Learn

    • 使用行为驱动开发(BDD)过程使用Jasmine开发Java应用程序
    • 通过增强您的茉莉花测试来测试特定特性或功能,从而应用定制匹配器
    • 使用HTML和JSON装备为jQuery和AJAX设计茉莉花规范
    • Generate code coverage analysis for JavaScript code using Karma and Istanbul
    • 为CoffeeScrip和AngularJS创建茉莉测试
    • 为JavaScript应用程序实现E2E(端到端)Jasmine规范以模拟实时场景

    In Detail

    Jasmine提供了一组丰富的库来设计和开发针对JavaScript应用程序的测试。它的测试目标是在任何支持JavaScript的平台上运行,并具有易于阅读的语法。

    这本书是一个全面的指南设计和开发茉莉花测试,以生产世界级的软件。这些配方是使用来自真实世界应用程序的示例来详细说明的,该应用程序涉及从简单到复杂的测试设计和开发的各个方面。您将学习如何为jQuery和AJAX、HTML和JSON装置、CoffeeScript和AngularJS创建测试。通过学习和应用本书中的最佳实践,您可以零缺陷地交付您的应用程序,并确保您和您的客户的成功。

    Table of Contents

    Chapter 1: Getting Started with Jasmine Framework
    Chapter 2: Jasmine with TDD and BDD Processes
    定制匹配器和Jasmine第3章:函数
    第4章:从需求出发设计规范
    第5章:茉莉花间谍
    第6章:使用AJAX、jQuery和固定器的茉莉花
    第7章:茉莉花测试的代码覆盖率
    第8章:茉莉花和其他工具
    第9章:使用Jasmine开发JavaScript应用程序–实时场景

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

    点击星号评分!

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

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

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册