AngularJS Test-driven Development
By Tim Chaplin
Publisher: Packt Publishing
Final Release Date: January 2015
Pages: 206

Starting with reviewing the test-driven development (TDD) life cycle, you will learn how Karma and Protractor make your life easier while running JavaScript unit tests. You will learn how Protractor is different from Selenium and how to test it entirely. This book is a walk-through to using TDD to build an AngularJS application containing a controller, model, and scope.

Building on the initial foundational aspects, you will expand to include testing for multiple controllers, partial views, location references, CSS, and the HTML element. In addition, you will explore using a headless browser with Karma. You will also configure Karma file watching to automate testing and tackle components of AngularJS (controller, service, model, and broadcasting) using TDD. At the end of this book, you will extend explore how to pull data using an external API, setting up and configuring Protractor to use a standalone Selenium server, and setting up Travis CI and Karma to test your application.

This book is a complete guide to testing techniques using Karma for unit testing and performing end-to-end testing with Protractor.

Product Details
Recommended for You
Customer Reviews


by PowerReviews
oreillyAngularJS Test-driven Development

(based on 1 review)

Ratings Distribution

  • 5 Stars



  • 4 Stars



  • 3 Stars



  • 2 Stars



  • 1 Stars



Reviewed by 1 customer

Displaying review 1

Back to top


Not very explanatory...


from Houston, TX

About Me Developer



    • Not comprehensive enough
    • Too many errors

    Best Uses

      Comments about oreilly AngularJS Test-driven Development:

      I had a much longer review typed, but I scrapped it.

      Full disclosure: I have not read through or worked through the entire book (see below...)

      The problems with this book are twofold: 1) glaring code errors resulting in code that will not run without multiple layers of fixes, and 2) the author leaves out key details (like instruction steps, filenames, directory structures, etc.).

      If you want a book that will tell you how to set up Karma, Angular, and Protractor, then this is nearly your book (although the author pretty much says "just look it up" in his instructions).

      If you want a book that you can learn from with well-formed examples and real-world testing wisdom, look elsewhere.

      Displaying review 1

      Back to top

      Buy 2 Get 1 Free Free Shipping Guarantee
      Buying Options
      Immediate Access - Go Digital what's this?
      Ebook:  $17.99
      Formats:  ePub, Mobi, PDF