Enrique Amodeo - Learning Behavior-driven Development with JavaScript [2015, PDF/EPUB, ENG] + Code

seeders: 5
leechers: 0
Added 11 years ago by D@vidoff in Books  > Non-Fiction

Download Fast Safe Anonymous
movies, software, shows...

Files

Enrique Amodeo - Learning Behavior-driven Development with JavaScript [2015, PDF/EPUB, ENG] + Code (Size: 3.91 MB)
  Code
  2642OS_02_Codes
  lib
  factory.js 673 B
  rules
  nonDivisible.js 137 B
  nonPositive.js 94 B
  validator.js 193 B
  package.json 439 B
  test
  validator-spec.js 3.38 KB
  2642OS_03_Codes
  lib
  orders.js 1.83 KB
  package.json 443 B
  test
  customer_displays_order.js 5.46 KB
  support
  examples
  beverages.js 392 B
  errors.js 251 B
  orders.js 1.42 KB
  storageDouble.js 682 B
  2642OS_04_Codes
  features
  making_an_order
  customer_displays_order.feature 1.79 KB
  lib
  orders.js 1.81 KB
  package.json 465 B
  test
  step_definitions
  display_order_steps.js 2.6 KB
  support
  cucumber_sugar.js 906 B
  examples
  errors.js 758 B
  orders.js 1.87 KB
  storageDouble.js 721 B
  world.js 2.98 KB
  2642OS_05_Codes
  index.js 75 B
  lib
  hal
  createForm2hal.js 563 B
  order2hal.js 1.78 KB
  placeOrderForm2hal.js 276 B
  routes
  order.js 2.54 KB
  package.json 495 B
  start.js 1.17 KB
  test
  get_createForm.js 3.37 KB
  get_order.js 6.36 KB
  get_placeOrderForm.js 1.75 KB
  get_resource_fails.js 1.55 KB
  index.js 910 B
  specs
  createForm.js 1.56 KB
  placeOrderForm.js 1.11 KB
  support
  client.js 748 B
  2642OS_06_Codes
  lib
  components
  form.jsx 1.81 KB
  input.jsx 940 B
  order.jsx 1.3 KB
  orderItem.jsx 405 B
  order-view.jsx 504 B
  package.json 571 B
  test
  index.js 1.89 KB
  order.html 854 B
  order_view_fires_addBeverage.js 3.69 KB
  order_view_updates_dom.js 7.18 KB
  2642OS_07_Codes
  lib
  components
  form.jsx 1.81 KB
  input.jsx 940 B
  order.jsx 1.3 KB
  orderItem.jsx 405 B
  order-view.jsx 712 B
  package.json 571 B
  test
  index.js 1.82 KB
  order.html 826 B
  order_view_fires_addBeverage.js 3.17 KB
  order_view_reacts_to_navigation.js 2.01 KB
  order_view_updates_dom.js 5.35 KB
  support
  form.js 1.42 KB
  order.js 1.85 KB
  orderItem.js 512 B
  ui.js 630 B
  2642OS_08_Codes
  ui-protractor
  .DS_Store 6 KB
  lib
  components
  form.jsx 1.81 KB
  input.jsx 940 B
  order.jsx 1.3 KB
  orderItem.jsx 405 B
  order-view.jsx 712 B
  package.json 759 B
  test
  conf.js 946 B
  order.html 847 B
  order_view_fires_addBeverage.js 3.28 KB
  order_view_reacts_to_navigation.js 2.12 KB
  order_view_updates_dom.js 5.54 KB
  support
  devServer.js 1.14 KB
  form.js 1.46 KB
  order.js 1.79 KB
  orderItem.js 486 B
  ui.js 654 B
  ui-webdriver
  lib
  components
  form.jsx 1.81 KB
  input.jsx 940 B
  order.jsx 1.3 KB
  orderItem.jsx 405 B
  order-view.jsx 712 B
  package.json 625 B
  test
  index.js 3.11 KB
  order.html 847 B
  order_view_fires_addBeverage.js 3.44 KB
  order_view_reacts_to_navigation.js 2.18 KB
  order_view_updates_dom.js 5.77 KB
  support
  form.js 1.49 KB
  order.js 1.85 KB
  orderItem.js 512 B
  ui.js 630 B
  2642OS_09_Codes
  .DS_Store 6 KB
  dao-crud
  lib
  orderDao.js 1.65 KB
  package.json 444 B
  test
  orderDaoSpec.js 3.82 KB
  dao-direct
  lib
  orderDao.js 1.44 KB
  package.json 442 B
  test
  orderDaoSpec.js 4.36 KB
  replay
  lib
  twitterFeed.js 653 B
  package.json 557 B
  test
  twitterFeedSpec.js 1.78 KB
  __MACOSX
  ._2642OS_02_Codes 226 B
  ._2642OS_03_Codes 226 B
  ._2642OS_04_Codes 226 B
  ._2642OS_05_Codes 226 B
  ._2642OS_06_Codes 226 B
  ._2642OS_07_Codes 226 B
  ._2642OS_08_Codes 226 B
  ._2642OS_09_Codes 226 B
  2642OS_02_Codes
  ._lib 226 B
  ._package.json 226 B
  ._test 226 B
  lib
  ._factory.js 226 B
  ._rules 226 B
  ._validator.js 226 B
  rules
  ._nonDivisible.js 226 B
  ._nonPositive.js 226 B
  test
  ._validator-spec.js 226 B
  2642OS_03_Codes
  ._lib 226 B
  ._package.json 226 B
  ._test 226 B
  lib
  ._orders.js 226 B
  test
  ._customer_displays_order.js 226 B
  ._support 226 B
  support
  ._examples 226 B
  ._storageDouble.js 226 B
  examples
  ._beverages.js 226 B
  ._errors.js 226 B
  ._orders.js 226 B
  2642OS_04_Codes
  ._features 226 B
  ._lib 226 B
  ._package.json 226 B
  ._test 226 B
  features
  ._making_an_order 226 B
  making_an_order
  ._customer_displays_order.feature 226 B
  lib
  ._orders.js 226 B
  test
  ._step_definitions 226 B
  ._support 226 B
  step_definitions
  ._display_order_steps.js 226 B
  support
  ._cucumber_sugar.js 226 B
  ._examples 226 B
  ._storageDouble.js 226 B
  ._world.js 226 B
  examples
  ._errors.js 226 B
  ._orders.js 226 B
  2642OS_05_Codes
  ._index.js 226 B
  ._lib 226 B
  ._start.js 226 B
  ._test 226 B
  lib
  ._hal 226 B
  ._routes 226 B
  hal
  ._createForm2hal.js 226 B
  ._order2hal.js 226 B
  ._placeOrderForm2hal.js 226 B
  routes
  ._order.js 226 B
  test
  ._get_createForm.js 226 B
  ._get_order.js 226 B
  ._get_placeOrderForm.js 226 B
  ._get_resource_fails.js 226 B
  ._index.js 226 B
  ._specs 226 B
  ._support 226 B
  specs
  ._createForm.js 226 B
  ._placeOrderForm.js 226 B
  support
  ._client.js 226 B
  2642OS_06_Codes
  ._lib 226 B
  ._package.json 226 B
  ._test 226 B
  lib
  ._components 226 B
  ._order-view.jsx 226 B
  components
  ._form.jsx 226 B
  ._input.jsx 226 B
  ._order.jsx 226 B
  ._orderItem.jsx 226 B
  test
  ._index.js 226 B
  ._order.html 226 B
  ._order_view_fires_addBeverage.js 226 B
  ._order_view_updates_dom.js 226 B
  2642OS_07_Codes
  ._lib 226 B
  ._package.json 226 B
  ._test 226 B
  lib
  ._components 226 B
  ._order-view.jsx 226 B
  components
  ._form.jsx 226 B
  ._input.jsx 226 B
  ._order.jsx 226 B
  ._orderItem.jsx 226 B
  test
  ._index.js 226 B
  ._order.html 226 B
  ._order_view_fires_addBeverage.js 226 B
  ._order_view_reacts_to_navigation.js 226 B
  ._order_view_updates_dom.js 226 B
  ._support 226 B
  support
  ._form.js 226 B
  ._order.js 226 B
  ._orderItem.js 226 B
  ._ui.js 226 B
  2642OS_08_Codes
  ._ui-protractor 226 B
  ._ui-webdriver 226 B
  ui-protractor
  ._.DS_Store 120 B
  ._lib 226 B
  ._package.json 226 B
  ._test 226 B
  lib
  ._components 226 B
  ._order-view.jsx 226 B
  components
  ._form.jsx 226 B
  ._input.jsx 226 B
  ._order.jsx 226 B
  ._orderItem.jsx 226 B
  test
  ._conf.js 226 B
  ._order.html 226 B
  ._order_view_fires_addBeverage.js 226 B
  ._order_view_reacts_to_navigation.js 226 B
  ._order_view_updates_dom.js 226 B
  ._support 226 B
  support
  ._devServer.js 226 B
  ._form.js 226 B
  ._order.js 226 B
  ._orderItem.js 226 B
  ._ui.js 226 B
  ui-webdriver
  ._lib 226 B
  ._package.json 226 B
  ._test 226 B
  lib
  ._components 226 B
  ._order-view.jsx 226 B
  components
  ._form.jsx 226 B
  ._input.jsx 226 B
  ._order.jsx 226 B
  ._orderItem.jsx 226 B
  test
  ._index.js 226 B
  ._order.html 226 B
  ._order_view_fires_addBeverage.js 226 B
  ._order_view_reacts_to_navigation.js 226 B
  ._order_view_updates_dom.js 226 B
  ._support 226 B
  support
  ._form.js 226 B
  ._order.js 226 B
  ._orderItem.js 226 B
  ._ui.js 226 B
  2642OS_09_Codes
  ._.DS_Store 120 B
  ._dao-crud 226 B
  ._dao-direct 226 B
  ._replay 226 B
  dao-crud
  ._lib 226 B
  ._package.json 226 B
  ._test 226 B
  ._test-db 226 B
  lib
  ._orderDao.js 226 B
  test
  ._orderDaoSpec.js 226 B
  dao-direct
  ._lib 226 B
  ._package.json 226 B
  ._test 226 B
  ._test-db 226 B
  lib
  ._orderDao.js 226 B
  test
  ._orderDaoSpec.js 226 B
  replay
  ._lib 226 B
  ._package.json 226 B
  ._test 226 B
  lib
  ._twitterFeed.js 226 B
  test
  ._twitterFeedSpec.js 226 B
  Enrique Amodeo - Learning Behavior-driven Development with JavaScript - 2015.epub 1.12 MB
  Enrique Amodeo - Learning Behavior-driven Development with JavaScript - 2015.pdf 2.58 MB

Description


Книги и журналы » Компьютерная литература » Веб-дизайн и программирование

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.
[spoiler="Примеры страниц"]

[/spoiler]
[spoiler="Оглавление"]
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
[/spoiler]