---
url: https://huldoser.github.io/test-inventory/api/functions/runCommands.md
---
# Function: runCommands()

> **runCommands**(`inventory`): [`RunCommand`](../interfaces/RunCommand.md)\[]

The commands that run the tests an inventory keeps, as after `filterInventory()` with `related`: one for each config,
and for Cypress one for each testing type, with the projects that run the tests, sorted by config. A test whose
projects are unknown runs in every project of its config.

## Parameters

### inventory

[`Inventory`](../interfaces/Inventory.md)

## Returns

[`RunCommand`](../interfaces/RunCommand.md)\[]
