舉報

會員
RSpec Essentials
最新章節:
Index
Thisbookisaimedatthesoftwareengineerwhowantstomaketheircodemorereliableandtheirdevelopmentprocesseasier.Itisalsoaimedattestengineerswhoneedtoautomatethetestingofcomplexsystems.KnowledgeofRubyishelpful,butevensomeonenewtothelanguageshouldfinditeasytofollowthecodeandtests.
目錄(75章)
倒序
- 封面
- 版權信息
- 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 更新時間:2021-07-09 19:33:48
推薦閱讀
- 零基礎搭建量化投資系統:以Python為工具
- 編程卓越之道(卷3):軟件工程化
- Apache Spark 2.x Machine Learning Cookbook
- Learning Elixir
- Animate CC二維動畫設計與制作(微課版)
- C語言程序設計
- Node.js全程實例
- 機器學習與R語言實戰
- 軟件測試實用教程
- Windows Phone 8 Game Development
- TypeScript 2.x By Example
- Python機器學習與量化投資
- Web編程基礎:HTML5、CSS3、JavaScript(第2版)
- PostgreSQL Developer's Guide
- 大話代碼架構:項目實戰版
- 零基礎學Java(第5版)
- 區塊鏈:技術與場景
- Roslyn Cookbook
- 信息安全技術(第2版)
- Go Programming Blueprints
- jMonkeyEngine 3.0 Cookbook
- The Ruby Workshop
- Processing與Arduino互動編程
- Learning Google BigQuery
- Python全案例學習與實踐
- Reactive Programming for .NET Developers
- Java程序設計與應用開發(第3版)
- Access2010實用教程
- 小猴編程:Scratch 3.0趣味少兒編程(提高篇)
- PHP從入門到精通(第5版)