Epub⋙: Learning Behavior-driven Development with JavaScript by Enrique Amodeo

Learning Behavior-driven Development with JavaScript by Enrique Amodeo

Learning Behavior-driven Development with JavaScript

Learning Behavior-driven Development with JavaScript by Enrique Amodeo PDF, ePub eBook D0wnl0ad

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.



From reader reviews:

Betty Walsh:

The book untitled Learning Behavior-driven Development with JavaScript is the guide that recommended to you to see. You can see the quality of the publication content that will be shown to a person. The language that publisher use to explained their ideas are easily to understand. The copy writer was did a lot of study when write the book, therefore the information that they share for you is absolutely accurate. You also could possibly get the e-book of Learning Behavior-driven Development with JavaScript from the publisher to make you considerably more enjoy free time.


Bryon Diaz:

The e-book with title Learning Behavior-driven Development with JavaScript has lot of information that you can find out it. You can get a lot of benefit after read this book. That book exist new knowledge the information that exist in this e-book represented the condition of the world now. That is important to yo7u to find out how the improvement of the world. This particular book will bring you throughout new era of the glowbal growth. You can read the e-book on the smart phone, so you can read that anywhere you want.


Linda Thomas:

Do you like reading a book? Confuse to looking for your selected book? Or your book seemed to be rare? Why so many problem for the book? But just about any people feel that they enjoy intended for reading. Some people likes reading through, not only science book but novel and Learning Behavior-driven Development with JavaScript or others sources were given knowledge for you. After you know how the great a book, you feel wish to read more and more. Science e-book was created for teacher or even students especially. Those textbooks are helping them to bring their knowledge. In other case, beside science reserve, any other book likes Learning Behavior-driven Development with JavaScript to make your spare time much more colorful. Many types of book like this one.




Read Learning Behavior-driven Development with JavaScript by Enrique Amodeo for online ebook

Learning Behavior-driven Development with JavaScript by Enrique Amodeo Free PDF d0wnl0ad, audio books, books to read, good books to read, cheap books, good books, online books, books online, book reviews epub, read books online, books to read online, online library, greatbooks to read, PDF best books to read, top books to read Learning Behavior-driven Development with JavaScript by Enrique Amodeo books to read online.

Learning Behavior-driven Development with JavaScript by Enrique Amodeo Doc

Learning Behavior-driven Development with JavaScript by Enrique Amodeo Mobipocket
Learning Behavior-driven Development with JavaScript by Enrique Amodeo EPub

Comments