Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
The Cucumber Book
Table of Contents
What Readers Are Saying About The Cucumber Book
Foreword
Acknowledgments
Preface
Who This Book Is For
Why You Should Listen to Us
How This Book Is Organized
What Is Not in This Book
Running the Code Examples
Getting Help
Part 1: Cucumber Fundamentals
Chapter 1: Why Cucumber?
1.1 Automated Acceptance Tests
1.2 Behaviour-Driven Development
1.3 Living Documentation
1.4 How Cucumber Works
1.5 What We Just Learned
Chapter 2: First Taste
2.1 Understanding Our Goal
2.2 Creating a Feature
2.3 Creating Step Definitions
2.4 Implementing Our First Step Definition
2.5 Running Our Program
2.6 Changing Formatters
2.7 Adding an Assertion
2.8 Making It Pass
2.9 What We Just Learned
Chapter 3: Gherkin Basics
3.1 What’s Gherkin For?
3.2 Format and Syntax
3.3 Feature
3.4 Scenario
3.5 Comments
3.6 Spoken languages
3.7 What We Just Learned
Chapter 4: Step Definitions: From the Outside
4.1 Steps and Step Definitions
4.2 Capturing Arguments
4.3 Multiple Captures
4.4 Flexibility
4.5 Returning Results
4.6 What We Just Learned
Chapter 5: Expressive Scenarios
5.1 Background
5.2 Data Tables
5.3 Scenario Outline
5.4 Nesting Steps
5.5 Doc Strings
5.6 Staying Organized with Tags and Subfolders
5.7 What We Just Learned
Chapter 6: When Cucumbers Go Bad
6.1 Feeling the Pain
6.2 Working Together
6.3 Caring for Your Tests
6.4 Stop the Line and Defect Prevention
6.5 What We Just Learned
Part 2: A Worked Example
Chapter 7: Step Definitions: On the Inside
7.1 Sketching Out the Domain Model
7.2 Removing Duplication with Transforms
7.3 Adding Custom Helper Methods to the World
7.4 Organizing the Code
7.5 What We Just Learned
Chapter 8: Support Code
8.1 Fixing the Bug
8.2 Bootstrapping the User Interface
8.3 Making the Switch
8.4 Using Hooks
8.5 Building the User Interface
8.6 What We Just Learned
Chapter 9: Dealing with Message Queues and Asynchronous Components
9.1 Our New Asynchronous Architecture
9.2 How to Synchronize
9.3 Implementing the New Architecture
9.4 Fixing the Flickering Scenario
9.5 What We Just Learned
Chapter 10: Databases
10.1 Introducing ActiveRecord
10.2 Refactoring to Use a Database
10.3 Reading and Writing to the Database
10.4 Cleaning the Database with Transactions
10.5 Cleaning the Database with Truncation
10.6 What We Just Learned
Part 3: Cucumber Applied
Chapter 11: The Cucumber Command-Line Interface
11.1 Cucumber’s Command-Line Options
11.2 Running a Subset of Scenarios
11.3 Changing Cucumber’s Output
11.4 Specifying the Location of Step Definitions
11.5 Managing Your Work in Progress (WIP)
11.6 Using Profiles
11.7 Running Cucumber from Rake
11.8 Running Cucumber in Continuous Integration
11.9 What We Just Learned
Chapter 12: Testing a REST Web Service
12.1 In-Process Testing of Rack-Based REST APIs
12.2 Out-of-Process Testing of Any REST API
12.3 What We Just Learned
Chapter 13: Adding Tests to a Legacy Application
13.1 Characterization Tests
13.2 Squashing Bugs
13.3 Adding New Behavior
13.4 Code Coverage
13.5 What We Just Learned
Chapter 14: Bootstrapping Rails
14.1 Running the Generators
14.2 Creating a User
14.3 Posting a Message
14.4 Associating a Message with a User
14.5 Creating a Controller by Hand
14.6 Implementing the View
14.7 What We Just Learned
14.8 Try this
Chapter 15: Using Capybara to Test Ajax Web Applications
15.1 Implementing a Simple Search Without Ajax
15.2 Searching with Ajax
15.3 The Capybara API
15.4 Taking Screenshots
15.5 What We Just Learned
Chapter 16: Testing Command-Line Applications with Aruba
16.1 Simple Interfaces
16.2 Our First Aruba Feature
16.3 Working with Files and Executables
16.4 Interacting with User Input
16.5 Using Aruba’s Ruby DSL
16.6 What We Just Learned
Appendix 1: Using Cucumber with Other Platforms
Appendix 2: Installing Cucumber
A2.1 Installing Ruby
A2.2 HTTP Proxy Settings
A2.3 Installing Bundler
A2.4 Installing Cucumber (and RSpec)
A2.5 Installing Other Gems
A2.6 Choosing a Text Editor
Appendix 3: Ruby Gem Versions
Appendix 4: Bibliography
You May Be Interested In…
← Prev
Back
Next →
← Prev
Back
Next →