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
Packt Subscription
$5.00
$9.99/m after first month
eBook
$5.00
RRP $31.99
Save 84%
Print + eBook
$39.99
RRP $39.99
What do I get with a Packt subscription?
  • Exclusive monthly discount - no contract
  • Unlimited access to entire Packt library of 6500+ eBooks and Videos
  • 120 new titles added every month, on new and emerging tech
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 subscription 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 subscription 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 subscription reader
$5.00
$5.00
$39.99
$9.99/m after first month
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Subscribe Now

Frequently bought together


Angular Test-Driven Development - Second Edition Book Cover
Angular Test-Driven Development - Second Edition
$ 31.99
$ 5.00
Learning Angular - Second Edition Book Cover
Learning Angular - Second Edition
$ 35.99
$ 5.00
Buy 2 for $10.00
Save $57.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
$ 5.00
ASP.NET Core 2 and Angular 5 Book Cover
ASP.NET Core 2 and Angular 5
$ 35.99
$ 5.00
Architecting Angular Applications with Redux, RxJS, and NgRx Book Cover
Architecting Angular Applications with Redux, RxJS, and NgRx
$ 35.99
$ 5.00
Angular Router Book Cover
Angular Router
$ 27.99
$ 5.00
Bootstrap 4 - Responsive Web Design Book Cover
Bootstrap 4 - Responsive Web Design
$ 71.99
$ 5.00
Essential Angular 4 Book Cover
Essential Angular 4
$ 23.99
$ 5.00