test runner

A tool that finds test files, runs the tests in them and reports which passed and which failed.

In more detail

Popular test runners include Jest, Vitest and Mocha for JavaScript and pytest for Python. A runner decides which tests to collect, in what order to run them and how to report the results. It usually exits with a non-zero code when any test fails, so build pipelines can stop.

Example

Node.js has one built in: node --test finds and runs test files, and node:test provides test(), describe(), it(), mocks and hooks.

Related terms

Taught in

References