Angular Test-Driven Development - Second Edition

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

Angular Test-Driven Development - Second Edition

Md. Ziaul Haq

2 customer reviews
Enhance your testing skills to build powerful and fault-free applications in Angular v4
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $31.99
Save 68%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt subscription?
  • Unlimited access to all Packt’s 6,000+ eBooks and Videos
  • 100+ new titles a month, learning paths, assessments & code files
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$39.99
$29.99 p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Angular Test-Driven Development - Second Edition Book Cover
Angular Test-Driven Development - Second Edition
$ 31.99
$ 10.00
Learning Angular - Second Edition Book Cover
Learning Angular - Second Edition
$ 35.99
$ 10.00
Buy 2 for $20.00
Save $47.98
Add to Cart

Book Details

ISBN 139781786465474
Paperback252 pages

Book Description

This is a complete guide that shows you testing techniques with Karma that will help you perform unit testing and end-to-end testing with Protractor. It will show you how to optimize your Angular development process using 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 various JavaScript test tools and frameworks. You will see how Karma and Protractor can make your life easier while running JavaScript unit tests. We will 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 explore how to use a headless browser with Karma. We will also configure a Karma file to automate the testing and tackle elements of Angular (components, services, classes, and broadcasting) using TDD.

Finally, you will find out how to pull data using 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.

Table of Contents

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 few 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

Authors

Table of Contents

Book Details

ISBN 139781786465474
Paperback252 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

Learning Angular - Second Edition Book Cover
Learning Angular - Second Edition
$ 35.99
$ 10.00
Essential Angular 4 Book Cover
Essential Angular 4
$ 23.99
$ 10.00
Angular Router Book Cover
Angular Router
$ 27.99
$ 10.00
Angular UI Development with PrimeNG Book Cover
Angular UI Development with PrimeNG
$ 35.99
$ 10.00
ASP.NET Core 2 and Angular 5 Book Cover
ASP.NET Core 2 and Angular 5
$ 35.99
$ 10.00
Architecting Angular Applications with Redux, RxJS, and NgRx Book Cover
Architecting Angular Applications with Redux, RxJS, and NgRx
$ 35.99
$ 10.00