JavaScript Testing with Jasmine

0
(0)

JavaScript Testing with Jasmine
 

  • Author:Evan Hahn
  • Length: 52 pages
  • Edition: 1
  • Publisher: O’Reilly Media
  • Publication Date: 2013-04-04
  • ISBN-10: 1449356370
  • ISBN-13: 9781449356378
  • Sales Rank: #2038321 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    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

    中文:

    书名:使用茉莉进行的JavaScript测试

    简要介绍Jasmine,这是一种流行的行为驱动测试框架。本实用指南向您展示了如何使用Jasmine编写单元测试,以自动检查应用程序中的错误。学习如何为各个组件编写规范,然后使用这些规范来测试您编写的代码。

    在整本书中,作者Evan Hahn主要关注用于测试基于浏览器的JavaScript应用程序的方法,但您还将发现如何将Jasmine与CoffeeScript、Node.js、Ruby on rails和Ruby Without Rails一起使用。你在任何地方都找不到更深入的茉莉花来源。

    • 了解测试驱动开发和行为驱动开发的概述
    • 通过确定需要测试的内容和不需要测试的内容来编写有用的规范
    • 根据您创建的规范测试新代码和现有代码的行为
    • 应用茉莉花匹配器,并发现如何建立自己的
    • 随着代码变得更加复杂,将代码套件组织到组和子组中
    • 使用茉莉花间谍代替函数或对象-并了解为什么它很有价值
  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

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

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

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册