Start reading Jasmine JavaScript Testing on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here or start reading now with a free Kindle Reading App.

Deliver to your Kindle or other device


Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.
Jasmine JavaScript Testing

Jasmine JavaScript Testing [Kindle Edition]

Paulo Ragonha

Print List Price: £20.99
Kindle Price: £10.67 includes VAT* & free wireless delivery via Amazon Whispernet
You Save: £10.32 (49%)
* Unlike print books, digital books are subject to VAT.


Amazon Price New from Used from
Kindle Edition £10.67  
Paperback £18.49  
Kindle Daily Deal
Kindle Daily Deal: At least 60% off
Each day we unveil a new book deal at a specially discounted price--for that day only. Learn more about the Kindle Daily Deal or sign up for the Kindle Daily Deal Newsletter to receive free e-mail notifications about each day's deal.

Special Offers and Product Promotions

  • Purchase any Kindle Book sold by and receive £1 credit to try out our Digital Music Store. Here's how (terms and conditions apply)

Customers Who Bought This Item Also Bought

Product Description

Product Description

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 more complicated, testing and applying sustainable software engineering practices also become mandatory.

Jasmine JavaScript Testing is a practical guide to a more sustainable JavaScript development process. You will learn by example how to drive the development of a web application using tests and best practices.

This book is about becoming a better JavaScript developer. So, throughout the chapters, you will not only learn about writing tests, but also about the best practices for writing software in the JavaScript language. This book is about acknowledging JavaScript as a real platform for application development and leveraging all of its potential. You will also learn about tooling and automation and how to make your life easier and more productive.

You will learn how to create a sustainable codebase with the help of Jasmine. We will take a look at integrated testing (with a backend NodeJS server) and how you can speed this process up by faking AJAX requests. As you progress through the book, you will learn about the challenges of testing an application built on top of a framework and how you can prevent your application from suffering from dependency management hell. Also, since your applications need to get into production, you will learn about optimizing the code to reduce the number of requests the browser needs to make while loading your application.

With this book, you will learn everything you need to know to become a real professional in the ever-demanding JavaScript universe.


The book uses a concise, to-the-point approach to help developers understand and use the power of Jasmine to create better and more maintainable codebases.

Who this book is for

This book is a must-have guide for web developers who are new to the concept of unit testing. It’s assumed that you have a basic knowledge of JavaScript and HTML.

About the Author

Paulo Ragonha

Paulo Ragonha is a software engineer. He loves web development for the opportunities that it carries; "to be able to craft a piece of software that can be instantly accessible by anyone" (with internet connection, of course).

In his early days of software development, he was mostly involved in game development and Java. But since his discovery of Ruby and JavaScript, he has worked uniquely on web applications.

His last three projects were big JavaScript applications, developed entirely driven by tests and with amazing tooling support.

He has an amazing wife that he loves very much, lives in the beautiful Florianópolis, a coast city in the south of Brazil. He is a casual speaker, a biker, a runner, and a hobbyist photographer (he has earned an actual award taking pictures).

Product details

  • Format: Kindle Edition
  • File Size: 493 KB
  • Print Length: 146 pages
  • Publisher: Packt Publishing (26 Aug 2013)
  • Sold by: Amazon Media EU S.à r.l.
  • Language: English
  • ISBN-10: 1782167218
  • ISBN-13: 978-1782167211
  • ASIN: B00ESX15MW
  • Text-to-Speech: Enabled
  • X-Ray:
  • Amazon Bestsellers Rank: #199,208 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?

More About the Author

Discover books, learn about writers, and more.

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

There are no customer reviews yet on
5 star
4 star
3 star
2 star
1 star
Most Helpful Customer Reviews on (beta) 4.8 out of 5 stars  5 reviews
2 of 2 people found the following review helpful
5.0 out of 5 stars Great Book on both Jasmine and Backbone 31 Oct 2013
By Dave Bouwman - Published on
I'd been using Jasmine for a few months when I got this book (from the publisher) and I must say that it immediately helped my write better tests. Unlike many books on unit testing, the examples in this book are not trivial. They mirror real-world application problems, and the author narrates the thought process, guiding you from a naive implementation that is difficult to test, through to a cleaner, testable implementation. I gained a lot of insights by reading these narratives, and that alone make this book worthwhile reading.

What's really great is that the author takes it further - by refactoring the "application" to use Backbone.js. If you've ever wondered how to do in-depth testing of Backbone views, or how to test event hooks between views and models, this book covers that.

Bottom line: if you are using jasmine - this is a great resource. If you are using Jasmine and Backbone - this is a must read.
2 of 2 people found the following review helpful
5.0 out of 5 stars The definitive guide for the javascript programmer 16 Sep 2013
By Lucas Rosa Galego - Published on
If you ever felt that your javascript code should be as organized and tested as all the other code of your projects, this book will show you how to do it.
If you never felt like that, you must read this book to refresh your mindset.
This is a book about unit testing, but it's not just about this, is about how to organize your javascript code and project, how to build your production release and how to evolve a good codebase of javascript.
This is a must have book.
1 of 1 people found the following review helpful
4.0 out of 5 stars a book about good code (using testing as a measure of success) 27 Sep 2013
By R. Friesel Jr. - Published on
Packt Publishing recently released Jasmine JavaScript Testing by Paulo Ragonha (@pirelenito), and I just wrapped up reading it this morning. I've read a few books on JavaScript unit testing and at least one other that was dedicated to Jasmine, and this one is a strong entry.

If you're unfamiliar with Jasmine, Ragonha will give you a solid foundation of the testing framework by the end of the second chapter. Less than 40 pages in and you'll understand Jasmine's approach to testing, as well as how to stand up a basic test suite. His coverage of the core functions and the collection of built-in matchers is concise and accurate. He builds on this foundation by demonstrating Jasmine's abilities in testing everything from asynchronous code to MVC components to AMD modules.

Despite the title, Jasmine JavaScript Testing isn't merely about the testing framework, or even just about testing. What Ragonha gives us is a book about how to write better code, using testability as the measurement of success. What is strongest about this book is how he uses a refactoring project as a frame-of-reference for telling the testability story. He's not just talking about using Jasmine for writing tests; he's talking about how to use it alongside the other tools and patterns that will make you a better front-end developer.

If you're just getting started with testing JavaScript for the front-end, or if you want to see some good real-world examples, then I would definitely recommend this one.

Disclosure: I received an electronic copy of this book from the publisher in exchange for writing this review.
5.0 out of 5 stars Great book 4 Jan 2014
By J.P. - Published on
Format:Kindle Edition
This is a fantastic book but it's not without flaws. I grew up in an era where you typed code in and that's how you learned what to do. There's plenty of that in this book (which is great), but there are big gaps in the source code. You can't just follow along in the book and end up where you need to be. I had to download the code from Packt to fill in the missing details. With that said, this is a great book. It's concise and to the point. No BS chapters on why unit testing is important and other nonsense publishers use to get larger books.
1 of 3 people found the following review helpful
5.0 out of 5 stars It's not only a book about jasmine but about good practices on javascript testing 26 Sep 2013
By Felipe Munhoz - Published on
Format:Kindle Edition|Verified Purchase
Jasmine Javascript testing is a book about how to be a pro in javascript testing.

I highly recommend the reading.
Were these reviews helpful?   Let us know

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category