liveBook · Manning

Test runner

As explained in BDD in Action, Second Edition

A test runner is a tool or framework component that discovers, schedules, and executes automated tests.

A test runner is the configuration point that discovers and executes automated scenarios. In Cucumber, it locates feature files, connects them to glue code, and can limit execution or produce result files. section 8.3 section 8.3.1

A practical Cucumber runner typically configures:

  • Feature locations, such as a classpath directory or the features folder. section 8.3.1
  • Glue-code packages containing the methods that implement Given, When, and Then steps. section 3.5.3
  • Tags for selecting a subset of scenarios and plugins for console output or JSON results. section 8.3.1
  • A Java test class containing configuration rather than test logic. section 8.3.1

Acceptance test suite

An AcceptanceTestSuite configured with CucumberWithSerenity scans classpath:features, uses a stepdefinitions package as glue, runs @important scenarios, and writes pretty console output plus target/cucumber.json.

How BDD in Action, Second Edition covers it

How deep it goes
Explains Java runner configuration, feature discovery, glue packages, tags, and plugins; it stops short of runner implementation internals.
Examples
Uses Java AcceptanceTestSuite classes configured for train-timetable scenarios and selected Cucumber tags.
What it assumes
Assumes familiarity with Cucumber feature files and glue code while distinguishing runner configuration from step implementation.
What you can do after
Operate Cucumber with configured feature paths, glue packages, tag filters, and reporting plugins.
How it connects
Connects feature files, Cucumber scenarios, glue code, step definitions, tags, plugins, and automated acceptance tests.

Also explained in

Compare how 5 books explain test runner →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of BDD in Action, Second Edition. The section links point to the parts of the book it draws on.