Book Image

AngularJS Test-driven Development

By : Tim Chaplin
Book Image

AngularJS Test-driven Development

By: Tim Chaplin

Overview of this book

<p>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.</p> <p>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.</p> <p>This book is a complete guide to testing techniques using Karma for unit testing and performing end-to-end testing with Protractor.</p>
Table of Contents (17 chapters)
AngularJS Test-driven Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

About the Author

Tim Chaplin lives and breathes software solutions and innovations. During the day, he works with Fortune 100 enterprise applications, and in the evening, he perfects his craft by contributing to and distributing open source software, writing, and constantly looking for ways to increase his knowledge of technology and the world. At an early age, Tim began developing software and has been hooked on it since. Tim is an established conference speaker who has extensive experience in developing and leading AngularJS projects. He has a wide background of JavaScript, C#, Java, and C++ languages. Tim specializes in leading code quality and testing throughout all his applications. After attending California State University, Chico, he has gone on to work in Shanghai, Los Angeles, and London.