- Learning Behavior:driven Development with JavaScript
- Enrique Amodeo
- 376字
- 2021-07-23 20:52:32
What this book covers
Chapter 1, Welcome to BDD, presents the basic concepts that act as a foundation for BDD. Its goal is to debunk a few false preconceptions about BDD and to clarify its nomenclature. It is the only theoretical chapter in the whole book.
Chapter 2, Automating Tests with Mocha, Chai, and Sinon, introduces the basic tools for testing in JavaScript. We will go through the installation process and some simple examples of testing. You can safely skip this chapter if you are well versed with these tools.
Chapter 3, Writing BDD Features, presents some techniques for transforming a functional requirement written in normal language into a set of automated BDD tests or features. We will write our first BDD feature.
Chapter 4, Cucumber.js and Gherkin, repeats the exercise of the previous chapter but this time using Cucumber.js. This way we can compare it fairly with Mocha. You can safely skip this chapter if you already know Cucumber.js.
Chapter 5, Testing a REST Web API, shows you how to test not only the core logic, but also the Node.js server that publishes a Web API. This chapter will be of special interest if you are writing a REST API.
Chapter 6, Testing a UI Using WebDriverJS, shows you how to approach testing the UI layer from the perspective of BDD. You will also learn about WebDriverJS and how it can help you in this task.
Chapter 7, The Page Object Pattern, explains how to create robust UI tests that are less susceptible to being broken by UI design changes. For that, we will apply the page object pattern.
Chapter 8, Testing in Several Browsers with Protractor and WebDriver, shows you how to use the Protractor framework to run your test suite in several browsers.
Chapter 9, Testing Against External Systems, gives you some basic techniques for doing this and, most important, shows you when not to do it. Although this kind of test is not strictly BDD, sometimes you do need to test against external systems.
Chapter 10, Final Thoughts, briefly summarizes the book and clarifies the right granularity for BDD testing. It will also tell you whether to do only BDD at the core business level, or add additional tests at other levels.
- iOS Game Programming Cookbook
- The Complete Rust Programming Reference Guide
- Learning Java Functional Programming
- ThinkPHP 5實戰(zhàn)
- 微服務(wù)與事件驅(qū)動架構(gòu)
- Julia Cookbook
- Java EE 8 Application Development
- 編程菜鳥學(xué)Python數(shù)據(jù)分析
- PHP從入門到精通(第4版)(軟件開發(fā)視頻大講堂)
- Visual Studio 2015高級編程(第6版)
- Android傳感器開發(fā)與智能設(shè)備案例實戰(zhàn)
- Java EE 7 with GlassFish 4 Application Server
- 深入解析Java編譯器:源碼剖析與實例詳解
- Python預(yù)測分析實戰(zhàn)
- Google Maps JavaScript API Cookbook