Book: JavaScript Testing with Jasmine: JavaScript Behavior-Driven Development
ISBN: 9781449356378
Publisher: O’Reilly
Year: 2013
All programmers want their code to work the way they intended. Jasmine, a popular
testing framework for the JavaScript programming language, allows you to achieve that
goal. Through coded specifications, Jasmine helps make your JavaScript work exactly
how it’s supposed to. In this book, we’ll explore Jasmine in detail, from its basic concepts
to its advanced features.
This book aims to explain the concepts of testing and test-driven development, as well
as why they’re useful. It then aims to dive into Jasmine and explain how it can help
programmers test their JavaScript code. By the end of this book, I aim to give readers
an understanding of Jasmine’s concepts and syntax.
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
-=DownLoad Links=-
Free Download Link 1 (To Get Unlimited Faster Download? Click Here)