Регистрация ·  Логин: Пароль: Запомнить   · Забыли пароль?




Ответить на тему
Автор Сообщение

Модератор
Аватара пользователя

С нами: 11 лет
Сообщения: 7870
Молдова

Сообщение 11 янв 2016, 21:25 

[Цитировать]

Learning Behavior-driven Development with JavaScript


Год: 2015
Автор: Enrique Amodeo
Издательство: Packt Publishing
ISBN: 978-1-78439-017-4
Язык: Английский
Формат: PDF/EPUB
Качество: Изначально компьютерное (eBook)
Количество страниц: 392
Описание:

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.
Preface
Chapter 1: Welcome to BDD

The test-fist approach
BDD versus TDD
Exploring unit testing
The structure of a test
What is a good test?
Chapter 2: Automating Tests with Mocha, Chai, and Sinon
Node and NPM as development platforms
Confiuring your project with NPM
Introducing Mocha
More expressive assertions with Chai
Red/Green/Refactor
Test doubles with Sinon
Chapter 3: Writing BDD Features
Introducing myCafé
Writing features
Testing asynchronous features
Organizing our test code
Finishing our feature
Chapter 4: Cucumber.js and Gherkin
Getting started with Gherkin and Cucumber.js
Writing advanced scenarios
Useful Cucumber.js features
Cucumber.js or Mocha?
Chapter 5: Testing a REST Web API
The approach
Testing the GET order feature
Testing slave resources
Chapter 6: Testing a UI Using WebDriverJS
Our strategy for UI testing
WebDriverJS
Testing a rich Internet application
Chapter 7: The Page Object Pattern
Introducing the Page Object pattern
A page object for a rich UI
Chapter 8: Testing in Several Browsers with Protractor and WebDriver
Testing in several browsers with WebDriver
Welcome Protractor!
Chapter 9: Testing Against External Systems
Writing good test doubles
Testing against external systems
Chapter 10: Final Thoughts
TDD versus BDD
A roadmap to BDD
Concluding the book
Next steps
Index
Download
Для скачивания .torrent файлов необходима регистрация
Сайт не распространяет и не хранит электронные версии произведений, а лишь предоставляет доступ к создаваемому пользователями каталогу ссылок на торрент-файлы, которые содержат только списки хеш-сумм

Страница 1 из 1

Ответить на тему

   Похожие торренты   Торрент