{"product_id":"9781786462763","title":"Angular Test-Driven Development - Second Edition","description":"\u003cp\u003e\u003cb\u003eEnhance your testing skills to build powerful and fault-free applications in Angular v4\u003c\/b\u003e\u003c\/p\u003e\u003cp\u003e\u003cb\u003eAbout This Book\u003c\/b\u003e\u003c\/p\u003e\u003cul\u003e\n\u003cli\u003eLearn test-driven development (TDD) for JavaScript\u003c\/li\u003e\n\u003cli\u003eImprove your Karma and Protractor expertise by setting up an Angular test suite\u003c\/li\u003e\n\u003cli\u003eA wide range of testing techniques for professional Angular applications accompanied by practical examples\u003c\/li\u003e\n\u003c\/ul\u003e\u003cb\u003eWho This Book Is For\u003c\/b\u003e\u003cp\u003eThis 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.\u003c\/p\u003e\u003cp\u003e\u003cb\u003eWhat You Will Learn\u003c\/b\u003e\u003c\/p\u003e\u003cul\u003e\n\u003cli\u003eGet a clear overview of TDD in the context of JavaScript with a brief look at testing techniques, tools, and frameworks\u003c\/li\u003e\n\u003cli\u003eGet an overview of Karma and create test suites for an Angular application\u003c\/li\u003e\n\u003cli\u003eInstall and configure Protractor for Angular and explore a few important Protractor APIs\u003c\/li\u003e\n\u003cli\u003eUnderstand automated testing and implement headless automated tests with Karma\u003c\/li\u003e\n\u003cli\u003eImplement testing techniques with mocks, broadcast events, and asynchronous behavior\u003c\/li\u003e\n\u003cli\u003eIntegrate REST-based services and APIs into an application to extract data\u003c\/li\u003e\n\u003cli\u003eAutomate Karma unit tests with Travis CI\u003c\/li\u003e\n\u003c\/ul\u003e\u003cb\u003eIn Detail\u003c\/b\u003e\u003cp\u003eThis 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.\u003c\/p\u003e\u003cp\u003e\u003c\/p\u003e\u003cp\u003eWe 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.\u003c\/p\u003e\u003cp\u003e\u003c\/p\u003e\u003cp\u003eBuilding 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.\u003c\/p\u003e\u003cp\u003e\u003c\/p\u003e\u003cp\u003eFinally, 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.\u003c\/p\u003e\u003cp\u003e\u003cb\u003eStyle and approach\u003c\/b\u003e\u003c\/p\u003e\u003cp\u003eThis book is a complete guide to Angular unit testing techniques using Karma and performing end-to-end testing with Protractor.\u003c\/p\u003e\u003cp\u003e\u003cbr\u003e\u003c\/p\u003e","brand":"Packt Publishing","offers":[{"title":"Default Title","offer_id":47140194812144,"sku":"9781786462763","price":31.99,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0737\/7593\/9824\/files\/9781786462763_p0.jpg?v=1763729180","url":"https:\/\/shop-qa.barnesandnoble.com\/products\/9781786462763","provider":"Barnes \u0026 Noble (DEV)","version":"1.0","type":"link"}