Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
AngularJS Test-driven Development
- ISBN-101784398837
- ISBN-13978-1784398835
- PublisherPackt Publishing
- Publication dateJanuary 29, 2015
- LanguageEnglish
- Dimensions7.5 x 0.47 x 9.25 inches
- Print length186 pages
Product details
- Publisher : Packt Publishing
- Publication date : January 29, 2015
- Language : English
- Print length : 186 pages
- ISBN-10 : 1784398837
- ISBN-13 : 978-1784398835
- Item Weight : 13.4 ounces
- Dimensions : 7.5 x 0.47 x 9.25 inches
- Best Sellers Rank: #12,944,288 in Books (See Top 100 in Books)
- #1,766 in Web Services
- #3,439 in Software Testing
- #91,559 in Computer Science (Books)
- Customer Reviews:
About the author

Discover more of the author’s books, see similar authors, read book recommendations and more.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonTop reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on June 2, 2015All examples should be well tested. mistakes like $rootscope instead of $rootScope or using expect(bottomEventSpy.wasCalled).toEqual(false) which doesn't work instead of expect(bottomEventSpy).not.toHaveBeenCalled();
I was able to find a significant coding error or problem with the tests on about every page I looked at. Forget my money back I want my time back!
$q service isn't event mentioned :(
Hire a programmer for an editor, visit angular and jasmine websites to look for any material missed and please finish this book.
- Reviewed in the United States on October 7, 2015Format: PaperbackVerified PurchaseI bought the book because it was said to have a good chapter on Protractor. Beyond setup, this chapter was useless. Refer to others reviews for their opinion as an Angular TDD source.
- Reviewed in the United States on April 25, 2015Format: PaperbackAn excellent end-to-end walk-through of an Angular workflow where testing is as natural and unobtrusive as possible. Unit testing with Jasmine/Karma and end-to-end testing with Protractor are thoroughly covered (although the author by no means exhausts the Jasmine and Protractor APIs), and he makes a very strong case for true test-driven development.
Though I've been personally working with Jasmine/Karma for awhile, I've never learned to use Protractor and I'm glad this book covered it. The online documentation and available tutorials on Protractor is a bit spotty and it's been hard to try and self-teach, so that lead me to search for some good books. Amos Haviv's "MEAN Web Development" doesn't cover much of Protractor, and really neither have Adam Freeman or any of Brad Dayley's Angular books, but the need for end-to-end testings is certainly there.
Reading this book I realized how I was pushing my unit tests to do what could be more easily done in Protractor, and as a result of the effort involved in writing those kinds of jQuery-heavy DOM inspecting tests, I was thereafter reluctant to keep my unit tests in sync whenever I made coding changes. The better solution would have been (in hindsight) to learn how to use Protractor, scale back on the jQuery usage in my unit tests, and limit the scope of my true unit tests to where they more naturally fall in place.
I am not sure I'll be able to personally adopt a full test-driven development workflow, but we'll see over time if the impression left on my by this book will set in. Test-driven development is a hard mindset to adopt as it takes away from the ingrained workflow that most of us have had for our entire careers, but if it can be done in any particular language it would probably be least obtrusive in a dynamic language like JavaScript or Python.
One word of caution with this author's style is he tends to introduce features in code before fully defining them, but stick with it because he'll do so later. It might frustrate you at first as you leaf back through the book to see if you missed something earlier, but he will explain in-depth later (sometimes in a later chapter even). In retrospect I think I prefer this to the more standard pattern of a dictionary's worth of definitions and explanations before you get to see it in action. And to his credit, the author understands the value of repetition in driving home new concepts as you'll be exposed to new concepts several times and sometimes with a few different looks at it before moving on to the next concept. So this is definitely the type of book where you can learn new concepts instead of just wetting your appetite enough to be confused and then end up searching the web for the API docs.
- Reviewed in the United States on April 20, 2015Format: PaperbackAngularJS testing is an oft-neglected topic, so it was quite refreshing to dive into a subtopic of the framework. Protractor can be a bit of a drag to get configured properly, and this book offers plenty of coverage for getting off the ground with it. I would not recommend this book for introductory AngularJS developers, as it requires at least a basic level of understanding of the main framework components to really understand how and why various testing methodologies are appropriate. Overall, a fine supplementary text for individuals concerned with getting AngularJS testing right the first time.
- Reviewed in the United States on April 17, 2015Format: PaperbackThat book is a great intruduction to testing angular applications. The book is written very concisely and supported by numerous examples.The book is not for beginners, but for those who want to improve the quality of their application code.
Reading this book was a pleasure for me.
Top reviews from other countries
Alistair GarrisonReviewed in the United Kingdom on November 18, 20155.0 out of 5 stars This book provides a very useful and clear overview on how several different testing tools ...
Format: PaperbackVerified PurchaseThis book provides a very useful and clear overview on how several different testing tools / frameworks interlock. It then progresses with easy to follow instructions on how to set up and run the testing tools, following either a top-down or bottom-up approach. Some of my colleagues are new to test-driven development, so I have recommended this book as a must read on the project.