Programming Books C Java PHP Python Learn more Browse Programming Books
JavaScript Unit Testing and over one million other books are available for Amazon Kindle. Learn more
Buy New
$26.99
Qty:1
  • List Price: $29.99
  • Save: $3.00 (10%)
FREE Shipping on orders over $35.
In Stock.
Ships from and sold by Amazon.com.
Gift-wrap available.
Have one to sell? Sell on Amazon
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See all 2 images

JavaScript Unit Testing Paperback – January 14, 2013


See all 2 formats and editions Hide other formats and editions
Amazon Price New from Used from
Kindle
"Please retry"
Paperback
"Please retry"
$26.99
$22.95 $35.94
Take%20an%20Extra%2030%25%20Off%20Any%20Book

Special Offers and Product Promotions

  • Take an Extra 30% Off Any Book: Use promo code HOLIDAY30 at checkout to get an extra 30% off any book for a limited time. Excludes Kindle eBooks and Audible Audiobooks. Restrictions apply. Learn more.

  • Get a $100 Amazon.com Gift Card: Get the Discover it card and get a $100.00 Amazon.com Gift Card* after your first purchase within 3 months. Learn more.

Frequently Bought Together

JavaScript Unit Testing + Testable JavaScript
Price for both: $51.90

Buy the selected items together

If you buy a new print edition of this book (or purchased one in the past), you can buy the Kindle edition for only $2.99 (Save 70%). Print edition purchase must be sold by Amazon. Learn more.


Best Books of the Month
Best Books of the Month
Want to know our Editors' picks for the best books of the month? Browse Best Books of the Month, featuring our favorite new books in more than a dozen categories.

Product Details

  • Paperback: 190 pages
  • Publisher: Packt Publishing; 1st New edition edition (January 14, 2013)
  • Language: English
  • ISBN-10: 1782160620
  • ISBN-13: 978-1782160625
  • Product Dimensions: 7.5 x 0.4 x 9.2 inches
  • Shipping Weight: 14.1 ounces (View shipping rates and policies)
  • Average Customer Review: 4.5 out of 5 stars  See all reviews (6 customer reviews)
  • Amazon Best Sellers Rank: #687,551 in Books (See Top 100 in Books)

WARNING:
CHOKING HAZARD -- Toy contains a small ball. Not for children under 3 yrs.

Editorial Reviews

About the Author

Hazem Saleh

Hazem Saleh has 9 years of experience in JEE and open source technologies. He has worked as a technical consultant for different clients in Europe (Sweden), North America (USA, Canada), South America (Peru), Africa (Egypt), and Asia (Qatar, Kuwait). He is an Apache MyFaces committer, and the founder of many open source projects.

Besides being the co-author of the book The Definitive Guide to Apache MyFaces and Facelets, Zubin Wadia, Martin Marinschek, Hazem Saleh, Dennis Byrne, Apress and the author of this book, Hazem is also an author of many technical articles, a developerWorks contributing author, and a technical speaker at both local and international conferences, such as the IBM Regional Technical Exchange, CONFESS, and JavaOne. Hazem is now working for IBM Egypt (Cairo Lab SWG Services) as an Advisory Software Engineer. He is a Web 2.0 subject matter expert and an IBM Certified Expert IT Specialist.


More About the Author

Hazem Saleh has ten years of experience in Java EE, Mobile and Open Source technologies. He worked as a technical consultant for many clients in Europe (Sweden), North America (USA, Canada), South America (Peru), Africa (Egypt, Morocco, Zambia), and Asia (Qatar, Kuwait, KSA). He is an Apache MyFaces committer and a person who spent many years of his life writing open source software. Beside being the author of the "JavaScript Unit Testing" book, "Pro JSF and HTML5" book and the co-author of the "Definitive guide to Apache MyFaces" book, Hazem is also an author of many technical articles, a developerWorks contributing author and a technical speaker in both local and international conferences such as ApacheCon North America, Geecon, JSFDays, CON-FESS Vienna and JavaOne (San Francisco, Moscow, and Shanghai). Hazem is now working for IBM Egypt as an advisory software engineer. He is a member of the IBM Mobile Global CoC (Centre of Competency), and an IBM Certified Expert IT Specialist (L2).

Customer Reviews

4.5 out of 5 stars
5 star
5
4 star
0
3 star
0
2 star
1
1 star
0
See all 6 customer reviews
Share your thoughts with other customers

Most Helpful Customer Reviews

4 of 4 people found the following review helpful By Zubin Wadia on February 3, 2013
Format: Paperback
Javascript Unit Testing does a phenomenal job covering the Javascript Unit Testing landscape. As Javascript becomes faster and faster within the confines of a Browser, it becomes more likely that complex code will be written with it. It is also natural that larger teams will be writing code for these projects across a variety of modules and separations of concern. All these factors increase the need for disciplined Unit Tests to be written, using some of the most prominent tools available today.

Hazem Saleh sets the book up in the first chapter by emphasizing the WHY around JS unit testing, their purpose in a code-base and how they should be written/designed. If you are a seasoned programmer with a solid unit test writing habit, this chapter is less useful, and you can proceed to the next few chapters. The author also introduces the reader to an appropriate sample application that gives us a canvas on which to apply the fundamentals and variety of Unit Test tools and frameworks in subsequent chapters. The example is a classic weather-oriented one, yet complex enough to put the power and need for JS unit testing into perspective.

Chapters 2-5 walk you through some of the most prominent tools for JS unit testing available today: Jasmine, YUI Test, Q Unit and JSTD. Each one has its own quirks and idiosyncrasies that are competently elaborated upon and applied to the Weather Application sample by the Author. Two other aspects I liked about the book were (1) the Author's care to include configuration instructions and architecture reviews for frameworks that had some pre-preparation required before you could get into them (2) the progression from some of the lighter-weight frameworks (Jasmin) to the most complex and comprehensive (JSTD).
Read more ›
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
4 of 4 people found the following review helpful By Juanjo Fernandez on February 19, 2013
Format: Paperback
I suppose at least in a generic way you know what is unit testing, but to sum it up in a few words, according to Wikipedia:

Unit testing is a method by which individual units of source code, sets of one or more computer program modules together with associated control data, usage procedures, and operating procedures, are tested to determine if they are fit for use.

By starting an application development, when it has relatively few lines of code all "fits" perfectly, but later when you want to add, modify, or delete certain functionality, this can become a big problem since when changing anything probably you will be breaking a few by the way.

Thanks to unit testing you can modify any module in your code, launch the tests, check failures, correct, and ready. Everything will still work in a clean, quick, and tidy way.

Once completed this short introduction, I'm going to review a book I've been reading these days and is about this theme: JavaScript Unit Testing:

Chapter 1 - Unit Testing JavaScript Applications: You'll find the only theoretical part of the entire book on the first pages of this chapter, where you'll learn what are the unit tests, why they are needed, and different approaches to create the tests: traditional unit testing and TDD.

Once this part is completed, you'll see how works the application on which you're going to make all the tests you'll find in the book. It's an application with the backend programmed in Java and a good amount of JavaScript in the frontend, that it really is what you'll be interested to make the tests. The application allows you to complete a new user registration, authenticate and check the weather in some cities.
Read more ›
2 Comments Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
1 of 1 people found the following review helpful By Werner Punz on February 28, 2013
Format: Paperback
The book is very good, it covers the theory behind unit testing and then goes into details by applying various unit testing frameworks in a small and a real world Ajax example.
The testframeworks covered are

- Jasmine
- YUI Test
- QUnit
-JSTestdriver

This book is a must read for everyone interested into Javascript unit testing, especially if you have to cover asynchronousity via Ajax (which is a key focal point through the entire book, in the more complex example)
Overall a very good book. Five stars from me.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

What Other Items Do Customers Buy After Viewing This Item?