Rate this book
(4.80)
5 star 4
4 star 1
3 star 0
2 star 0
1 star 0
Starting with reviewing the test-driven development (TDD) life cycle, you will learn how Karma and Protractor make your life easier while running JavaScript unit tests. You will learn how Protractor is different from Selenium and how to test it entirely. This book is a walk-through to using TDD to build an AngularJS application containing a controller, model, and scope.

Building on the initial foundational aspects, you will expand to include testing for multiple controllers, partial views, location references, CSS, and the HTML element. In addition, you will explore using a headless browser with Karma. You will also configure Karma file watching to automate testing and tackle components of AngularJS (controller, service, model, and broadcasting) using TDD. At the end of this book, you will extend explore how to pull data using an external API, setting up and configuring Protractor to use a standalone Selenium server, and setting up Travis CI and Karma to test your application.


Publisher: Packt Publishing
Author: Tim Chaplin
ISBN: 978-1-78439-883-5
Year: 2015
Pages: 206
Language: English
File size: 1.8 MB
File format: PDF
Buy: AngularJS Test-driven Development

Related Books