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

REVIEW SNAPSHOT®

by PowerReviews
oreillyAngularJS Test-driven Development
 
1.0

(based on 1 review)

Ratings Distribution

  • 5 Stars

     

    (0)

  • 4 Stars

     

    (0)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (1)

Reviewed by 1 customer

Displaying review 1

Back to top

 
1.0

Not very explanatory...

By KDP

from Houston, TX

About Me Developer

Pros

    Cons

    • 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