Glue code
Glue code is integration software whose primary purpose is connecting otherwise separate tools, applications, modules, or components so they work together.
BDD in Action, Second Edition
Glue code is integration code that connects executable behavior specifications or test steps to application code and services.
- How it is used
- Connects Gherkin scenario steps to automation code so Cucumber can execute acceptance tests.
- How deep it goes
- Works through annotated methods, test-data conversion, and service design; develops underlying behavior through separate unit tests.
- Examples
- Illustrates train-departure step methods and frequent-flyer setup in Java and TypeScript.
- What you can do after
- Build it from scratch by binding steps to methods, converting test data, calling services, and checking results.
Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond
Code whose main purpose is to connect separate modules or components together.
- How it is used
- Connects cohesive modules in an application’s main logic, keeping the integration layer simple.
- How deep it goes
- Shows integration from imports and setup through rendering, game turns, and event listeners.
- Examples
- Uses Blackjack setup and play, plus a Hangman plan that places integration code in index.
- What you can do after
- Build it from scratch by importing modules and wiring their functions into game behavior.
Related concepts
- N×M integration problemused by · The N×M integration problem is the growth in custom integrations that results when each of N applications must connect independently to each of M external systems or providers.
- callbackhas part · A callback is a function or other callable supplied to software for invocation later in response to a specified event, condition, or point in execution.
- step definitionhas part · A step definition is executable code that binds a human-readable behavior-driven development step to actions that perform or verify the corresponding behavior.
- custom parameter typehas part · A custom parameter type is a user-defined Cucumber expression extension that converts matched text into a typed value for a step definition.
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.

