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.)

Applescript Scripting Additions Guide (ATL)
Applescript Scripting Additions Guide (ATL)
Since 1985, Apple and Addison-Wesley have been publishing authoritative books about Apple technologies. The Apple Technical Library provides Macintosh developers with the official treatment of all the major new technologies that Apple releases. Timely, accurate, and clear, this collection of books is the essential resource for...
Biological Calcification: Normal and Pathological Processes in the Early Stages
Biological Calcification: Normal and Pathological Processes in the Early Stages

For the first time, this book offers a critical review of the calcification process of the organic and inorganic phases of mineralized tissues focusing on the earliest phases. It includes a methodological chapter which provides the necessary practical information for making appropriate choices. The book is set to become an important reference...

Modular Compiler Verification: A Refinement-Algebraic Approach Advocating Stepwise Abstraction
Modular Compiler Verification: A Refinement-Algebraic Approach Advocating Stepwise Abstraction

After 40 years of practice and theory in compiler construction and 30 years of experience and teaching in software engineering we still observe that safetycritical high-level language programs are certified only together with the corresponding machine code. The reason is that certification institutions do not trust any compiler. And they are...


A First Book of C++
A First Book of C++

Gary Bronson's A FIRST BOOK OF C++, Fourth Edition, takes a hands-on, applied approach to the first programming language course for students studying computer science. The book begins with procedural programming in C, and then gradually introduces object-oriented programming features and the C++ language syntax that enables first-time...

David Busch's Compact Field Guide for the Nikon D5000
David Busch's Compact Field Guide for the Nikon D5000

Are you tired of squinting at the tiny color-coded tables and difficult-to-read text you find on the typical laminated reference card or cheat sheet that you keep with you when you're in the field or on location? DAVID BUSCH'S COMPACT GUIDE FOR THE NIKON D5000 is your solution! This new, lay-flat, spiral bound, reference guide...

Alternative Methods of Regression (Wiley Series in Probability and Statistics)
Alternative Methods of Regression (Wiley Series in Probability and Statistics)
Since its discovery almost 200 years ago, least squares has been the most popular method of regression analysis. A statistics book with the word "regression" in its title, without any qualifying adjective such as "robust" or "nonparametric" or "alternative", can be assumed to be about least-squares...
©2019 LearnIT (support@pdfchm.net) - Privacy Policy