Angular Test-Driven Development - Second Edition
eBook - ePub
No longer available |Learn more

Angular Test-Driven Development - Second Edition

Md. Ziaul Haq

Share book
  1. 252 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub
No longer available |Learn more

Angular Test-Driven Development - Second Edition

Md. Ziaul Haq

Book details
Table of contents
Citations

About This Book

Enhance your testing skills to build powerful and fault-free applications in Angular v4About 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 examplesWho This Book Is ForThis 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 CIIn DetailThis 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 approachThis book is a complete guide to Angular unit testing techniques using Karma and performing end-to-end testing with Protractor.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Angular Test-Driven Development - Second Edition an online PDF/ePUB?
Yes, you can access Angular Test-Driven Development - Second Edition by Md. Ziaul Haq in PDF and/or ePUB format, as well as other popular books in Informatik & Programmierung in JavaScript. We have over one million books available in our catalogue for you to explore.

Information

Year
2017
ISBN
9781786462763

Table of contents