Angular Test-Driven Development – Second Edition

$39.99 (as of August 18, 2017, 1:08 am) & FREE Shipping. Details

Usually ships in 24 hours

Categories: ,


Enhance your testing skills to build powerful and fault-free applications in Angular v4

About This Book

  • Learn test-driven development (TDD) for JavaScript
  • Improve your Karma and Protractor expertise by setting up an Angular test suite
  • A wide range of testing techniques for professional Angular applications accompanied by practical examples

Who This Book Is For

This book is for developers who have experience with Angular but need to understand the wider context of when, why, and how to apply testing techniques and best practices to create quality clean code. To get the most out of this book, you will have a good understanding of HTML and JavaScript and a basic understanding of Angular.

What You Will Learn

  • Get a clear overview of TDD in the context of JavaScript with a brief look at testing techniques, tools, and frameworks
  • Get an overview of Karma and create test suites for an Angular application
  • Install and configure Protractor for Angular and explore a couple of important Protractor APIs
  • Understand automated testing and implement headless automated tests with Karma
  • Implement testing techniques with mocks, broadcast events, and asynchronous behavior
  • Integrate REST-based services and APIs into an application to extract data
  • Automate Karma unit tests with Travis CI

In Detail

This is a complete guide that shows you testing techniques with Karma that can assist you perform unit testing and end-to-end testing with Protractor. It is going to show you how to optimize your Angular development process the use of TDD techniques and ensure your final project is free of bugs. All examples in this book are based on Angular v2 and are compatible with Angular v4.

We start by reviewing the TDD life cycle, TDD in the context of JavaScript, and quite a lot of JavaScript test tools and frameworks. You’ll see how Karma and Protractor can make your life easier at the same time as running JavaScript unit tests. We will be able to enable you to build a test suite for an Angular application and build a testable medium-to-large scale Angular application by handling REST API data.

Building on the initial foundational aspects, we move on to testing for multiple classes, partial views, location references, CSS, and the HTML element. In addition, We will be able to explore how to use a headless browser with Karma. We will be able to also configure a Karma file to automate the testing and tackle elements of Angular (components, services, classes, and broadcasting) the use of TDD.

Finally, You’ll find out how to pull data the use of an external API, set up and configure Protractor to use a standalone Selenium server, and set up Travis CI and Karma to test your application.

Style and approach

This book is a complete guide to Angular unit testing techniques the use of Karma and performing end-to-end testing with Protractor.

Frequently Bought Together

Price for all: $168.54


There are no reviews yet.

Be the first to review “Angular Test-Driven Development – Second Edition”

Your email address will not be published. Required fields are marked *