舉報(bào)

會(huì)員
RSpec Essentials
最新章節(jié):
Index
Thisbookisaimedatthesoftwareengineerwhowantstomaketheircodemorereliableandtheirdevelopmentprocesseasier.Itisalsoaimedattestengineerswhoneedtoautomatethetestingofcomplexsystems.KnowledgeofRubyishelpful,butevensomeonenewtothelanguageshouldfinditeasytofollowthecodeandtests.
目錄(75章)
倒序
- 封面
- 版權(quán)信息
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- Chapter 1. Exploring Testability from Unit Tests to Behavior-Driven Development
- The promise of testing
- Testability
- Technical assumptions
- Running our first spec
- Understanding the unit test
- Writing specs with RSpec
- Test-driven development
- Behavior-driven development
- Summary
- Chapter 2. Specifying Behavior with Examples and Matchers
- Structure of a spec file
- Using let and context
- Matchers
- Testing for errors
- Summary
- Chapter 3. Taking Control of State with Doubles and Hooks
- Why mock?
- Mocks stubs and doubles
- Using hooks
- Controlling when hooks are executed
- Advanced state control with hooks and mocks
- Summary
- Chapter 4. Setting Up and Cleaning Up
- Configuring RSpec with spec_helper.rb
- Initialization and configuration of resources
- Summary
- Chapter 5. Simulating External Services
- The importance of external web services
- Mock HTTP responses with custom helpers
- Using VCR for mock requests
- Summary
- Chapter 6. Driving a Web Browser with Capybara
- Getting started with Capybara and Selenium
- Integrating Capybara with RSpec
- Why Capybara?
- Black-box JavaScript tests with a real browser
- Summary
- Chapter 7. Building an App from the Outside In with Behavior-Driven Development
- Exploring BDD
- MMFs by example
- Using TodoMVC
- Specifying the MMF
- Configuring RSpec to run a feature file
- The BDD process begins
- Building web apps with Rack
- Serving static files using Rack middleware
- Summary
- Chapter 8. Tackling the Challenges of End-to-end Testing
- Step 1 – building the view
- Step 2 – defining the API
- Step 3 – finishing the view
- The pros and cons of BDD
- Simple Rack authentication middleware
- JSON Web Token
- Summary
- Chapter 9. Configurability
- Configuration and testability
- File-based configuration management
- A better configuration manager
- Summary
- Chapter 10. Odds and Ends
- Reducing duplication with shared example groups
- Mocking time
- Detecting false negatives and false positives
- Testing mixins with dummy containers
- Summary
- Index 更新時(shí)間:2021-07-09 19:33:48
推薦閱讀
- Learning Neo4j
- 玩轉(zhuǎn)Scratch少兒趣味編程
- 國(guó)際大學(xué)生程序設(shè)計(jì)競(jìng)賽中山大學(xué)內(nèi)部選拔真題解(二)
- MongoDB for Java Developers
- Python從入門到精通(精粹版)
- x86匯編語(yǔ)言:從實(shí)模式到保護(hù)模式(第2版)
- Swift 3 New Features
- Instant QlikView 11 Application Development
- Python機(jī)器學(xué)習(xí):手把手教你掌握150個(gè)精彩案例(微課視頻版)
- Mastering Apache Spark 2.x(Second Edition)
- Java面向?qū)ο蟪绦蛟O(shè)計(jì)
- App Inventor創(chuàng)意趣味編程進(jìn)階
- Modern C++ Programming Cookbook
- 自學(xué)Python:編程基礎(chǔ)、科學(xué)計(jì)算及數(shù)據(jù)分析(第2版)
- 大規(guī)模語(yǔ)言模型開(kāi)發(fā)基礎(chǔ)與實(shí)踐
- VBA Automation for Excel 2019 Cookbook
- C++程序設(shè)計(jì)習(xí)題與實(shí)驗(yàn)指導(dǎo)
- 數(shù)據(jù)預(yù)處理從入門到實(shí)戰(zhàn):基于SQL、R、Python
- XML程序設(shè)計(jì)案例教程
- Visual FoxPro程序設(shè)計(jì)教程
- Getting Started with Oracle WebLogic Server 12c:Developer’s Guide
- 速學(xué)Django:Web開(kāi)發(fā)從入門到進(jìn)階
- Learning Sinatra
- Java SE程序設(shè)計(jì)
- Nginx底層設(shè)計(jì)與源碼分析
- Learning Cloudera Impala
- Node.js權(quán)威指南
- Web Development with MongoDB and NodeJS(Second Edition)
- 高可用可伸縮微服務(wù)架構(gòu):基于Dubbo、Spring Cloud和Service Mesh
- Building Single:page Web Apps with Meteor