Home | Amazing | Today | Tags | Publishers | Years | Account | Search 
Angular Test-Driven Development - Second Edition

Buy

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 want 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 should 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 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

In Detail

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.

Style and approach

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

(HTML tags aren't allowed.)

The Essential Guide to 3D in Flash (Essential Guide To...)
The Essential Guide to 3D in Flash (Essential Guide To...)

If you are an ActionScript developer or designer and you would like to work with 3D in Flash, this book is for you. You will learn the core Flash 3D concepts, using the open source Away3D engine as a primary tool. Once you have mastered these skills, you will be able to realize the possibilities that the available Flash 3D engines, languages,...

Oracle RMAN Pocket Reference
Oracle RMAN Pocket Reference
This book is a quick-reference guide for Recovery Manager (RMAN), Oracle's utility to manage all of your Oracle database backup and recovery activities. This book is not a comprehensive backup and recovery book. It contains an overview of RMAN architecture, shows briefly how to backup and restore databases using RMAN, describes catalog setup...
Introducing English Linguistics (Cambridge Introductions to Language and Linguistics)
Introducing English Linguistics (Cambridge Introductions to Language and Linguistics)
'Just the textbook for those who prefer a thorough introduction to historical, social, and textual aspects of English before tackling formal linguistics.' Bill Kretzschmar, University of Georgia

Are you looking for a genuine introduction to the linguistics of English that provides a broad overview of the subject that sustains
...

Pro SQL Server 2005 Integration Services
Pro SQL Server 2005 Integration Services
SQL Server Integration Services is groundbreaking. It exists for both the DBA and the developer, as well as that new role SSIS has created between the two--the data artisan.

Pro SQL Server 2005 Integration Services contains everything you could ever hope to know about this exciting new development from Microsoft: developer insight,...

Hands-On Guide to Streaming Media, Second Edition : an Introduction to Delivering On-Demand Media
Hands-On Guide to Streaming Media, Second Edition : an Introduction to Delivering On-Demand Media
Hands-On Guide to Streaming Media Basics introduces you to the technology of “streaming,” the process of sending audio and video over computer networks in real time. You will learn all you need to know to put music from your garage band, a recording of your child’s first words, and video of your CEO’s annual pep talk on the...
Essential 3ds Max 2008
Essential 3ds Max 2008

Essential 3ds Max 2008 offers a user-friendly introduction to the newest version of 3ds Max. From an overview of the user interface, tools, and modifers to modeling exercises that demonstrate the creation of an interior, a basic character, and a suit of armor, this book provides readers with a guide to getting the most out of Max. Learn how...

©2021 LearnIT (support@pdfchm.net) - Privacy Policy