About the Book: JavaScript Testing with Jasmine JavaScript Behavior-Driven Development 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 youll also discover how to use Jasmine with CoffeeScript, Node.js, Ruby on Rails, and Ruby without Rails. You wont 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 dont 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 its valuable Content Chapter 1 Intro to Testing What Is Software Testing? Why Is It Useful? Test-Driven Development Behavior-Driven Development Chapter 2 Jasmine What Is Jasmine? Getting Set Up with Jasmine Testing Existing Code with describe, it, and expect Matchers Writing the Tests First with Test-Driven Development Chapter 3 Writing Good Tests Cardinal Rule: When in Doubt, Test Test Components Black-Box Testing Chapter 4 Matchers in Depth Equality: toEqual Identity: toBe Yes or No? toBeTruthy, toBeFalsy Negate Other Matchers with not Check If an Element Is Present with to Contain Is It Defined? To Be Defined, to Be Undefined Nullness: to Be Null Is It NaN? To Be NaN Comparators: to Be Greater Than, to Be Less Than Nearness: to Be Close To Using toMatch with Regular Expressions Checking If a Function Throws an Error with to Throw Custom Matchers Chapt
"synopsis" may belong to another edition of this title.
Evan is a JavaScript developer currently enrolled at University of Michigan. He started coding in BASIC when he was 6 years old. In high school, he was the webmaster of his high school's online newspaper, where he learned how to make more of a real website (PHP, mySQL, JavaScript, jQuery).
He most recently worked at UniversityNow, an educational startup in Palo Alto.
"About this title" may belong to another edition of this title.
(No Available Copies)
Search Books: Create a WantCan't find the book you're looking for? We'll keep searching for you. If one of our booksellers adds it to AbeBooks, we'll let you know!
Create a Want