چه کسانی این کتاب را می‌خوانند

دانشجوعلاقه‌مند یادگیری
کتابخوان حرفه‌ایلذت مطالعه
نویسندهالهام‌گیری

JavaScript Testing with Jasmine: JavaScript Behavior-Driven Development

Evan Hahn

قیمت نهایی

۴۴٬۰۰۰ تومان۴۹٬۰۰۰ تومان۱۰٪ تخفیف
  • تخفیف زمان‌دار−۵٬۰۰۰ تومان

۵٬۰۰۰ تومان صرفه‌جویی نسبت به قیمت اصلی

نسخه اصلی و اورجینال

بلافاصله پس از خرید، فایل کتاب روی دستگاه شما آمادهٔ دانلود است.

تحویل فوری
پرداخت امن
ضمانت فایل
پشتیبانی

مشخصات کتاب

نویسنده
Evan Hahn
سال انتشار
۲۰۱۳
فرمت
PDF
زبان
انگلیسی
حجم فایل
۳٫۸ مگابایت

دربارهٔ کتاب

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 Copyright......Page 2 Table of Contents......Page 3 Conventions Used in This Book......Page 5 Safari® Books Online......Page 6 Acknowledgments......Page 7 What Is Software Testing?......Page 9 Behavior-Driven Development......Page 10 Getting Set Up with Jasmine......Page 13 An Example to Test......Page 14 Jasmine Time!......Page 15 Matchers......Page 16 Writing the Tests First with Test-Driven Development......Page 17 Test Components......Page 21 Black-Box Testing......Page 22 Identity: toBe......Page 23 Yes or No? toBeTruthy, toBeFalsy......Page 24 Check If an Element Is Present with toContain......Page 25 Is It NaN? toBeNaN......Page 26 Nearness: toBeCloseTo......Page 27 Custom Matchers......Page 28 Before and After......Page 31 Skipping Specs and Suites......Page 32 Matching Class Names......Page 33 The Basics: Spying on a Function......Page 35 Calling Through: Making Your Spy Even Smarter......Page 37 Creating a New Spy Function......Page 38 Creating a New Spy Object......Page 39 Jasmine and CoffeeScript......Page 41 Basic Usage......Page 42 jasmine-node and CoffeeScript......Page 43 Usage......Page 44 More Tools......Page 45 The Basic Structure of a Suite......Page 47 Reserved Words in Jasmine......Page 48 About the Author......Page 50 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. If you have JavaScript experience—with knowledge of some advanced features—you’ll 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 developmentWrite useful specs by determining what you need to test—and what you don’tTest the behavior of new and existing code against the specs you createApply Jasmine matchers and discover how to build your ownOrganize code suites into groups and subgroups as your code becomes more complexUse a Jasmine spy in place of a function or an object—and learn why it’s valuable 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. If you have JavaScript experiencewith knowledge of some advanced featuresyoull 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.

قیمت نهایی

۴۴٬۰۰۰ تومان