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

Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems
Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems

Want to know how the best software engineers and architects structure their applications to make them scalable, reliable, and maintainable in the long term? This book examines the key principles, algorithms, and trade-offs of data systems, using the internals of various popular software packages and frameworks as examples.

...

Foundation Drupal 7
Foundation Drupal 7

Drupal is a content management framework that powers web sites from simple online brochures to more advanced sites including social networking sites, blogs, e-commerce sites, business portals, and more. It is free, open source software that allows anyone to quickly and easily build web sites. Its full range of modules—including user...

The Dissimilarity Representation for Pattern Recognition: Foundations And Applications
The Dissimilarity Representation for Pattern Recognition: Foundations And Applications
Pattern recognition is both an art and a science. We are able to see structure and recognize patterns in our daily lives and would like to find out how we do this. We can perceive similarities between objects, between people, between cultures and between events. We are able to observe the world around us, to analyze existing phenomena and to...

Modern Particle Physics
Modern Particle Physics

Unique in its coverage of all aspects of modern particle physics, this textbook provides a clear connection between the theory and recent experimental results, including the discovery of the Higgs boson at CERN. It provides a comprehensive and self-contained description of the Standard Model of particle physics suitable for upper-level...

Behavioral Emergencies for the Emergency Physician
Behavioral Emergencies for the Emergency Physician

Emergency physicians, in all practice settings, care for patients with both undifferentiated psycho-behavioral presentations and established psychiatric illness. This reference-based text goes beyond diagnostics, providing practical input from physicians experienced with adult emergency psychiatric patients. Physicians will increase their...

Robotics and Automation Handbook
Robotics and Automation Handbook
Robots are machines that have interested the general population throughout history. In general, they are machines or devices that operate automatically or by remote control. Clearly people have wanted to use such equipment since simple devices were developed. The word robot itself comes from Czech robota, “servitude, forced labor,” and...
©2019 LearnIT (support@pdfchm.net) - Privacy Policy