AngularJS Test-driven Development

Implement the best practices to improve your AngularJS applications using test-driven development



Bookstore > Books > AngularJS Test-driven Development

AngularJS Test-driven Development
Buy
Preview
Price$17.99 - $38.06
Rating
AuthorTim Chaplin
PublisherPackt Publishing
Published2015
Pages206
LanguageEnglish
FormatPaper book / ebook (PDF)
ISBN-101784398837
ISBN-139781784398835
EBook Hardcover Paperback

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.




4 5 13

Similar Books


Test-Driven JavaScript Development

Test-Driven JavaScript Development

Initially, all processing used to happen on the server-side and simple output was the response to web browsers. Nowadays, there are so many JavaScript frameworks and libraries created that help readers to create charts, animations, simulations, and so on. By the time a project finishes or reaches a stable state, so much JavaScript code ha...
Test-Driven Development with Python

Test-Driven Development with Python

By taking you through the development of a real web application from beginning to end, this hands-on guide demonstrates the practical advantages of test-driven development (TDD) with Python. You'll learn how to write and run tests before building each part of your app, and then develop the minimum amount of code required to pass those tes...
Test-Driven Development with Python, 2nd Edition

Test-Driven Development with Python, 2nd Edition

By taking you through the development of a real web application from beginning to end, the second edition of this hands-on guide demonstrates the practical advantages of test-driven development (TDD) with Python. You'll learn how to write and run tests before building each part of your app, and then develop the minimum amount of code requ...
Instant RSpec Test-Driven Development How-to

Instant RSpec Test-Driven Development How-to

RSpec is a behaviour driven development framework for Ruby programmers. It comes integrated with its own mocking framework based on Jmock. This book introduces you to RSpec helping you to write idiomatic specifications for Ruby code in a test first approach.Instant RSpec Test-Driven Development How-to is filled with examples of actual cod...
Python Testing Cookbook, 2nd Edition

Python Testing Cookbook, 2nd Edition

Automated testing is the best way to increase efficiency while reducing the defects of software testing. It helps find bugs in code easily and at an early stage so that they can be tackled efficiently. This book delves into essential testing concepts used in Python to help you build robust and maintainable code.Python Testing Cookbook beg...
Lean-Agile Acceptance Test-Driven Development

Lean-Agile Acceptance Test-Driven Development

Within the framework of Acceptance Test-Driven-Development (ATDD), customers, developers, and testers collaborate to create acceptance tests that thoroughly describe how software should work from the customer's viewpoint. By tightening the links between customers and agile teams, ATDD can significantly improve both software quality and de...