AngularJS Test-driven Development

Implement the best practices to improve your AngularJS applications using test-driven development

AngularJS Test-driven Development

Tim Chaplin

2 customer reviews
Implement the best practices to improve your AngularJS applications using test-driven development
Packt Subscription
FREE
$9.99/m after trial
eBook
$12.60
RRP $17.99
Save 29%
Print + eBook
$29.99
RRP $29.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
$0.00
$12.60
$29.99
$0 p/m after trial
RRP $17.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 10 Day Trial

Frequently bought together


AngularJS Test-driven Development Book Cover
AngularJS Test-driven Development
$ 17.99
$ 12.60
Web Application Development with MEAN Book Cover
Web Application Development with MEAN
$ 67.99
$ 47.60
Buy 2 for $30.10
Save $55.88
Add to Cart

Book Details

ISBN 139781784398835
Paperback206 pages

Book Description

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.

What You Will Learn

  • Implement unit and end-to-end testing with Karma and Protractor
  • Understand the workings of the file auto-watch feature and headless browser testing with Karma
  • Develop AngularJS controllers, services, and other components using the TDD approach
  • Implement the 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
  • Get to know about TDD techniques, the TDD life cycle, and its power through clear examples to enhance your AngularJS applications

Authors

Book Details

ISBN 139781784398835
Paperback206 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

Web Application Development with MEAN Book Cover
Web Application Development with MEAN
$ 67.99
$ 47.60
Angular Test-Driven Development - Second Edition Book Cover
Angular Test-Driven Development - Second Edition
$ 31.99
$ 22.40
Learning Node.js Development Book Cover
Learning Node.js Development
$ 31.99
$ 22.40
C# 7.1 and .NET Core 2.0 - Modern Cross-Platform Development - Third Edition Book Cover
C# 7.1 and .NET Core 2.0 - Modern Cross-Platform Development - Third Edition
$ 31.99
$ 22.40
Web Application Development with MEAN Book Cover
Web Application Development with MEAN
$ 67.99
$ 47.60
Hands-On Design Patterns with C# and .NET Core Book Cover
Hands-On Design Patterns with C# and .NET Core
$ 35.99
$ 25.20