reklama - zainteresowany?

JavaScript Testing with Jasmine. JavaScript Behavior-Driven Development - Helion

JavaScript Testing with Jasmine. JavaScript Behavior-Driven Development
ebook
Autor: Evan Hahn
ISBN: 978-14-493-5675-0
stron: 52, Format: ebook
Data wydania: 2013-03-25
Księgarnia: Helion

Cena książki: 46,74 zł (poprzednio: 54,99 zł)
Oszczędzasz: 15% (-8,25 zł)

Dodaj do koszyka JavaScript Testing with Jasmine. JavaScript Behavior-Driven Development

Tagi: JavaScript - Programowanie

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

Dodaj do koszyka JavaScript Testing with Jasmine. JavaScript Behavior-Driven Development

 

Osoby które kupowały "JavaScript Testing with Jasmine. JavaScript Behavior-Driven Development", wybierały także:

  • Matematyka dla programistów JavaScript
  • Vue.js 2. Wprowadzenie dla profesjonalistów
  • D3.js w akcji
  • Baw siÄ™ kodem! Twoja wÅ‚asna gra. CoderDojo Nano
  • Tablice informatyczne. Node.js

Dodaj do koszyka JavaScript Testing with Jasmine. JavaScript Behavior-Driven Development

Spis treści

JavaScript Testing with Jasmine. JavaScript Behavior-Driven Development eBook -- spis treści

  • JavaScript Testing with Jasmine
  • Preface
    • Who Should Read This Book
    • Conventions Used in This Book
    • Using Code Examples
    • Safari Books Online
    • How to Contact Us
    • Acknowledgments
  • 1. Intro to Testing
    • What Is Software Testing?
    • Why Is It Useful?
    • Test-Driven Development
    • Behavior-Driven Development
  • 2. Jasmine
    • What Is Jasmine?
    • Getting Set Up with Jasmine
    • Testing Existing Code with describe, it, and expect
      • An Example to Test
      • Jasmine Time!
    • Matchers
    • Writing the Tests First with Test-Driven Development
  • 3. Writing Good Tests
    • Cardinal Rule: When in Doubt, Test
    • Test Components
    • Black-Box Testing
  • 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 toContain
    • Is It Defined? toBeDefined, toBeUndefined
    • Nullness: toBeNull
    • Is It NaN? toBeNaN
    • Comparators: toBeGreaterThan, toBeLessThan
    • Nearness: toBeCloseTo
    • Using toMatch with Regular Expressions
    • Checking If a Function Throws an Error with toThrow
    • Custom Matchers
  • 5. More Jasmine Features
    • Before and After
    • Nested Suites
    • Skipping Specs and Suites
    • Matching Class Names
  • 6. Spies
    • The Basics: Spying on a Function
    • Calling Through: Making Your Spy Even Smarter
    • Making Sure a Spy Returns a Specific Value
    • Replacing a Function with a Completely Different Spy
    • Creating a New Spy Function
    • Creating a New Spy Object
  • 7. Using Jasmine with Other Tools
    • Jasmine and CoffeeScript
    • Jasmine and Node.js
      • Installing jasmine-node on Unix and Linux
      • Installing jasmine-node on Windows
      • Basic Usage
      • Asynchronous Tests with jasmine-node
      • jasmine-node and CoffeeScript
    • Jasmine and Ruby on Rails
      • Installation
      • Usage
    • Jasmine with Non-Rails Ruby
    • More Tools
  • 8. Reference
    • Jasmine on the Web
    • The Basic Structure of a Suite
    • Matchers Reference
    • List of Falsy Values
    • Reserved Words in Jasmine
  • About the Author
  • Colophon
  • Copyright

Dodaj do koszyka JavaScript Testing with Jasmine. JavaScript Behavior-Driven Development

Code, Publish & WebDesing by CATALIST.com.pl



(c) 2005-2024 CATALIST agencja interaktywna, znaki firmowe należą do wydawnictwa Helion S.A.