Learning Behavior-driven Development with javascript by Enrique AmodeoEnglish | 19 Feb. 2015 | ISBN: 1784392642 | 392 Pages | PDF | 2 MB
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.
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
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.
Title: Learning Behaviordriven Development with JavaScript
Size: 2.26 MB | Format: rar
Download:
- Code:
-
http://uploaded.net/file/sr0zkdpq/hotfile-3b86v.L.B.D.w.J.R.rar
https://userscloud.com/bub5sc77yes7/hotfile-3b86v.L.B.D.w.J.R.rar
http://go4up.com/dl/ba74dc7f49fa