Learning AngularJS Testing [Video]

Learning AngularJS Testing [Video]

Rudolf Olah

1 customer reviews
Excel at AngularJS testing skills and coding techniques to build potent, interactive applications
Mapt Subscription
FREE
$29.99/m after trial
Video
$22.50
RRP $74.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 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
$22.50
$29.99p/m after trial
RRP $74.99
Subscription
Video
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Video Details

ISBN 139781782174899
Course Length1 hour and 3 minutes

Video Description

Finding the perfect balance between visual layout and coding has been a nightmare for developers, a problem which AngularJS deals with so well that in just a brief time since inception, it has become a favorite of developers all around the world. It has rightfully earned the tag of being a ‘Superheroic’ framework thanks to the diverse range of features it provides, and also as it helps the developers to build powerful applications without compromising on the visual aspects. Along with being a fully-featured package, it also presents an outstanding ability to be tested, which further helps to manage the applications and keeps them up and running!

Learning Angular.JS Testing will help you to understand the different aspects involved in testing components, such as controllers and directives, with the help of a practical pizza ordering application right from the start, all the way to the end!

We’ll start by constructing a project structure of our app, before installing and initializing various helpful tools such as Karma, Jasmine, and Grunt. We will create controllers for ordering the pizza, reviewing the order and test them be it with or without any dependencies. Not only that, but we will also go through testing the navigation between two controllers with the help of End2End testing. After that, we will create accordion directives for our application, unit test them, and resolve the errors if these tests fail. Furthermore, we will modify our services to use the $resource module and help them interact with REST API web services, as well as unit test them with the help of mocks and spies. Finally, we will create and test directives and controllers which fetch information from the service and display it.

At the end of the course, you’ll be familiar with the various approaches involved in testing AngularJS code and will be able to implement them to develop bug-free and maintainable applications.

Style and Approach

Learning AngularJS Testing is a practical and hands-on guide which will help you grasp the various concepts and skills required for testing code in AngularJS applications. By the end of the course, you’ll be equipped with considerable knowledge to start testing your own apps.

Table of Contents

Setting Up AngularJS for Unit Testing and End2End Testing
The Course Overview
Setting Up Karma and Jasmine with Grunt Task Runner
Setting Up the Project Structure
Configuring Karma for Testing
Testing Controllers
Testing Controllers That Have No Dependencies
Testing Controllers That Have a Dependency
End2End Testing Two Controllers
Testing Directives
Creating an accordion Directive
Unit Testing the accordion Directive
An End2End Test of the Controller That Uses the accordion Directive
Testing $resource-based REST API Services
Creating and Testing the $resource Service Using Mocks and Spies
Creating a REST API NodeJS Server with Fake Data
Displaying Information with a Directive (from the Service)
Displaying Information with a Controller

What You Will Learn

  • Setup your testing environment by installing and configuring various tools like Jasmine, Karma and Grunt
  • Unit test your controllers without dependencies and those with dependencies with the help of mocks and spies
  • Analyze the navigation between two different controllers with routes using End2End testing
  • Create and test accordion directives for DOM manipulations as well as perform End2End test on controllers which use them
  • Build and test a service which interacts with REST API

Authors

Table of Contents

Setting Up AngularJS for Unit Testing and End2End Testing
The Course Overview
Setting Up Karma and Jasmine with Grunt Task Runner
Setting Up the Project Structure
Configuring Karma for Testing
Testing Controllers
Testing Controllers That Have No Dependencies
Testing Controllers That Have a Dependency
End2End Testing Two Controllers
Testing Directives
Creating an accordion Directive
Unit Testing the accordion Directive
An End2End Test of the Controller That Uses the accordion Directive
Testing $resource-based REST API Services
Creating and Testing the $resource Service Using Mocks and Spies
Creating a REST API NodeJS Server with Fake Data
Displaying Information with a Directive (from the Service)
Displaying Information with a Controller

Video Details

ISBN 139781782174899
Course Length1 hour and 3 minutes
Read More
From 1 reviews

Read More Reviews

Recommended for You

Build scalable applications with Apache Kafka [Video] Book Cover
Build scalable applications with Apache Kafka [Video]
$ 124.99
$ 37.50
Advanced Functional Data Structures and Algorithms [Video] Book Cover
Advanced Functional Data Structures and Algorithms [Video]
$ 124.99
$ 37.50
Finishing Touches on the Game [Video] Book Cover
Finishing Touches on the Game [Video]
$ 124.99
$ 37.50