Learning Behavior-driven development with Javascript
| By: | Enrique Javier A Rubio |
| Publisher: | Packt Publishing |
| Print ISBN: | 9781784392642 |
| eText ISBN: | 9781784390174 |
| Edition: | 1 |
| Copyright: | 2015 |
| Format: | Reflowable |
Lifetime - $39.59
eBook Features
Instant Access
Purchase and read your book immediately
Read Offline
Access your eTextbook anytime and anywhere
Study Tools
Built-in study tools like highlights and more
Read Aloud
Listen and follow along as Bookshelf reads to you
Details
Table of Contents
Book Description
This 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