liveBook · Manning

Chapter 20: Staging patterns for adapting test execution

What you will learn in chapter 20 of Effective Behavior-Driven Development

The chapter introduction explains why scenario execution must accommodate the different external services and customized deployments a system supports.

After this chapter you will be able to

What it builds on

Section by section

Introduction

The chapter introduction explains why scenario execution must accommodate the different external services and customized deployments a system supports.

Key terms: configuration, external services, customized deployments, localized, white-labelled

20.1 Test Configuration

This section distinguishes environment configuration from test parameters and explains how automated scenarios can use defaults and overrides across execution contexts.

Key terms: environment configuration, test parameters, default values, local execution, CI/CD pipeline, configuration files, environment variables, console arguments

20.2 Test Configuration Provider pattern: provide uniform access to configuration settings

The section shows how a Test Configuration Provider hides configuration-loading details while allowing scenario execution settings to vary between local and CI/CD runs.

Key terms: Test Configuration Provider pattern, TestConfigurationProvider, configuration settings, configuration file, environment variables, CI/CD pipeline, UseStub, flattened, section-objects, DatabaseTestConfiguration

20.3 Parameterized Execution pattern: extend the coverage of BDD scenarios

This section explains how running BDD scenarios with different test configurations can extend coverage, and how to choose and manage those variations.

Key terms: Parameterized Execution pattern, test configuration parameter, fast and robust feedback, parameterized execution, scenario outline examples, test parameters, tag filtering, skipping, execution report, CI/CD pipeline

20.4 Parameterized Scenario pattern: specify and verify requirement variations

This section explains how Parameterized Scenarios adapt specifications and their automation to verify different deployment configurations.

Key terms: software factory, deployment configurations, test configurations, Parameterized Scenario pattern, special notation, custom parameter types, configuration settings, sales tax behaviors, Then step definitions, expected value

20.5 Summary

Concepts explained in this chapter

← Chapter 19: Technical note patterns for quick error recovery Chapter 21: Stagecraft patterns for interacting with external resources →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.