Home | Amazing | Today | Tags | Publishers | Years | Account | Search 
Learning Behavior-driven Development with JavaScript

Buy

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

About This Book

  • Master the most popular testing tools in the JavaScript ecosystem, such as CucumberJS, Mocha, SinonJS, and more.
  • Learn how Behavior-driven development can help you to write software that is more modular and has less defects.
  • Avoid common mistakes in testing, simplify your test suites, and make them more maintainable using a very pragmatic approach to BDD.

Who This Book Is For

TThis book is ideal for any JavaScript developer who is interested in producing well-tested code. If you have no prior experience with testing, Node.js, or any other tool, do not worry, as they will be explained from scratch.

What You Will Learn

  • Understand the basic concepts of BDD and how it is different from classic unit testing
  • Divide your system into different modules that can be tested separately, but at the same time not falling into the trap of unit testing
  • Use Mocha, Sinon.JS, and Chai to write expressive BDD features
  • Implement Cucumber.js to automate tests written in Gherkin so that your stakeholders can understand them
  • Discover how to test asynchronous systems, either based on callbacks or promises
  • Test a RESTful web API and a rich UI using WebDriverJS and Protractor
  • Refactor and keep your test code base maintainable using best practices and patterns such as PageObject

In Detail

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.

(HTML tags aren't allowed.)

Least Privilege Security for Windows 7, Vista, and XP
Least Privilege Security for Windows 7, Vista, and XP

Least Privilege Security is the practice of assigning users and programs the minimum permissions required to complete a given task. Implementing this principle in different versions of Microsoft Windows requires careful planning and a good understanding of Windows security. While there are benefits in implementing Least Privilege Security on...

Mobility, Data Mining and Privacy: Geographic Knowledge Discovery
Mobility, Data Mining and Privacy: Geographic Knowledge Discovery
The technologies of mobile communications and ubiquitous computing pervade our society, and wireless networks sense the movement of people and vehicles, generating large volumes of mobility data. This is a scenario of great opportunities and risks: on one side, mining this data can produce useful knowledge, supporting sustainable mobility and...
Master Math: Probability
Master Math: Probability

Master Math: Probability is a comprehensive reference guide that explains and clarifies the principles of probability in a simple, easy-to-follow style and format. Beginning with the most basic fundamental topics and progressing through to the more advanced, the book helps clarify probability using step-by-step procedures and solutions, along...


Archaeological Chemistry (RSC Paperbacks)
Archaeological Chemistry (RSC Paperbacks)
The second edition of this popular title Archaeological Chemistry builds on the successful formula of the first edition. The existing case studies have been expanded to take account of new perspectives and new data in the intervening decade since the 1st edition was published. In addition, two new chapters emphasise the significant increase in...
States, Intergovernmental Relations, and Market Development: Comparing Capitalist Growth in Contemporary China and 19th Century United States (Governing China in the 21st Century)
States, Intergovernmental Relations, and Market Development: Comparing Capitalist Growth in Contemporary China and 19th Century United States (Governing China in the 21st Century)
This book is a theoretical and empirical analysis of institutional foundation of long-term economic growth from the perspective of state-market and central-local relations. The book argues that, in order to safeguard sustainable market development, it is necessary to centralize certain functions of the state to overcome local predatory...
Fundamentals of ActionScript 3.0: Develop and Design
Fundamentals of ActionScript 3.0: Develop and Design

Welcome to ActionScript. Over the next several chapters, you’ll be introduced to one of the most versatile programming languages to create web applications for the browser, desktop applications, and mobile apps for multiple platforms. For years the Flash Platform has provided people with the most powerful set of...

©2019 LearnIT (support@pdfchm.net) - Privacy Policy