Learning Behavior-driven Development with JavaScript

Create powerful yet simple-to-code BDD test suites in JavaScript using the most popular tools in the community



Bookstore > Books > Learning Behavior-driven Development with JavaScript

Price$29.99 - $62.01
Rating
AuthorEnrique Amodeo
PublisherPackt Publishing
Published2015
Pages392
LanguageEnglish
FormatPaper book / ebook (PDF)
ISBN-101784392642
ISBN-139781784392642
EBook Hardcover Paperback

JavaScript is not only widely used to create attractive user interfaces for the Web, but with the advent of Node.js, it is also becoming a very popular and powerful language to write server-side applications. Using behavior-driven development and some common testing patterns and best practices, you will be able to avoid these traps.

This book will show you how to do BDD in a practical way. We will start with a basic introduction of what BDD is and why the classical approach to testing has failed. Afterwards, we will dive directly into an introduction to Node.js, Mocha, and Sinon.JS. Finally, we will cover more advanced subjects such as how to write a fast and effective test suite for a RESTful web API, and how to do the same with a rich UI using Cucumber.js and Protractor.

This book will give you great insight into how to architect your system to make it more testable and modular, but at the same time avoid the nightmare of abusing mock objects.





4 5 9

Similar Books


Test-Driven Infrastructure with Chef

Test-Driven Infrastructure with Chef

by Stephen Nelson-Smith

Test-Driven Infrastructure with Chef demonstrates a radical approach to developing web infrastructure that combines the powerful Chef configuration management framework with Cucumber, the leading Behavior-driven development (BDD) tool. Learn how to deliver real business value by developing infrastructure code test-first.Infrastructure con...

Price:  $25.26  |  Publisher:  O'Reilly Media  |  Release:  2011

Test-Driven Infrastructure with Chef, 2nd Edition

Test-Driven Infrastructure with Chef, 2nd Edition

by Stephen Nelson-Smith

Since Test-Driven Infrastructure with Chef first appeared in mid-2011, infrastructure testing has begun to flourish in the web ops world. In this revised and expanded edition, author Stephen Nelson-Smith brings you up to date on this rapidly evolving discipline, including the philosophy driving it and a growing array of tools. You'll get ...

Price:  $29.55  |  Publisher:  O'Reilly Media  |  Release:  2013

Type-Driven Development with Idris

Type-Driven Development with Idris

by Edwin Brady

Stop fighting type errors! Type-driven development is an approach to coding that embraces types as the foundation of your code - essentially as built-in documentation your compiler can use to check data relationships and other assumptions. With this approach, you can define specifications early in development and write code that's easy to...

Price:  $40.27  |  Publisher:  Manning  |  Release:  2017

Real World Windows 8 App Development with JavaScript

Real World Windows 8 App Development with JavaScript

by Edward Moemeka, Elizabeth Moemeka

Real World Windows 8 App Development with JavaScript offers you practical advice and hard-earned insights that will help you create and publish apps to a worldwide market.Led by authors with deep Windows 8 app development experience, you'll learn how to make the most of Microsoft's APIs for hooking into Windows 8 on all devices, including...

Price:  $4.53  |  Publisher:  Apress  |  Release:  2013

JavaScript Testing with Jasmine

JavaScript Testing with Jasmine

by Evan Hahn

Get a concise introduction to Jasmine, the popular behavior-driven testing framework for JavaScript. This practical guide shows you how to write unit tests with Jasmine that automatically check for bugs in your application. Learn how to write specifications for individual components, and then use those specs to test the code you write.Thr...

Price:  $10.25  |  Publisher:  O'Reilly Media  |  Release:  2013

AngularJS Test-driven Development

AngularJS Test-driven Development

by Tim Chaplin

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

Price:  $17.99  |  Publisher:  Packt Publishing  |  Release:  2015

Model-Driven Development with Executable UML

Model-Driven Development with Executable UML

by Dragan Milicev

A comprehensive reference for an executable UML and the advantages of modeling This book presents the most up-to-date technology for rapidly developing information systems using the object-oriented paradigm and models, and establishes an executable profile of UML for such model-driven development. As a software developer, architect, or an...

Price:  $102.18  |  Publisher:  Wrox  |  Release:  2009

Test-Driven Development with Python

Test-Driven Development with Python

by Harry J.W. Percival

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

Price:  $12.17  |  Publisher:  O'Reilly Media  |  Release:  2014