JavaScript Testing with Jasmine
JavaScript Behavior-Driven Development
Book Details:
Publisher: | O'Reilly Media |
Series: |
OReilly
|
Author: | Evan Hahn |
Edition: | 1 |
ISBN-10: | 1449356370 |
ISBN-13: | 9781449356378 |
Pages: | 52 |
Published: | Apr 04 2013 |
Posted: | Nov 19 2014 |
Language: | English |
Book format: | PDF |
Book size: | 1.42 MB |
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 testand 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 objectand learn why it's valuable
Leverage the power of unit testing to create bigger and better JavaScript applications Overview Learn the power of test-driven development while creating a fully-featured web application Understand the best practices for modularization and code organization while putting your application to scale Leverage the power of frameworks such as BackboneJS and jQuery while maintaining the code quality Automate everything from spec execution to build; leave repetition to the monkeys In Detail From a little renegade scripting language to the de facto standard platform of today, JavaScript has become a universal language available in the widest range of devices; it is truly the 'write once, run everywhere language. However, as JavaScript applications become mo...
With Ruby, Rails, and JavaScript
We all know feedback is good. Why not get it instantly? Continuous Testing with Ruby shows you how to use a combination of tests, tools, and techniques to immediately detect problems in code. This book will help you create a personalized development environment that instantly validates your decisions as you make changes to your code. This rapid feedback allows you to focus on the problem at hand, rather than constantly re-checking prior work. If you want to spend more of your time writing valuable software, and less time slogging through code line-by-line in a debugger, Continuous Testing with Ruby can help you! Continuous Testing (CT) is a developer practice that shortens the feedback loops established by test-driven development and continuous integ...
This book is organized such that only the most essential information is provided to you in each chapter so as to maximize your learning. Examples and tutorials are given in an easy to follow, step-by-step manner so that you can see how the testing process is being carried out and how the code is being written. The source code also contains detailed explanation so that you know what the code is doing. Multiple screenshots are used in places that matter so that you have a visual sense of what is happening. Beginner JavaScript developers looking for essential ways to write, test, and debug JavaScript for different purposes and situations....
2007 - 2021 © eBooks-IT.org