> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quiesco.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Test runners

> Vitest (recommended), Jest or Cucumber: one session for the run, a reset before every test, evidence on failure.

Quiesco drives the app from your test runner. Three have ready-made integrations, and they all work the
same way: one session (device and app) for the whole run, a reset before every test, tests tagged for
another platform or browser skipped (`@ios`, `@android`, `@web`, `@native`, `@chromium`, `@firefox`, `@webkit`; the innermost level wins), and a
failure's message lists the evidence files (screenshot, element tree, idle state, logs).

| Runner | Package | Tests | The app |
| - | - | - | - |
| **Vitest** (recommended) | `@quiesco/vitest` | TypeScript, `test(…)` | the `app` fixture |
| Jest | `@quiesco/jest` | JavaScript, `test(…)` | the global `quiesco.app` |
| Cucumber | `@quiesco/cucumber` | Gherkin features and step definitions | `this.app` in steps |

## Choosing one

`quiesco init` asks which runner to use (Vitest is preselected; in CI it takes Vitest without asking) and
installs only that runner's packages, its config and a first test. To choose without the question:

```sh pnpm theme={null}
# or jest, cucumber
pnpm dlx quiesco init --runner vitest
```

```sh npm theme={null}
# or jest, cucumber
npx quiesco init --runner vitest
```

```sh bun theme={null}
# or jest, cucumber
bunx quiesco init --runner vitest
```

```sh yarn theme={null}
# or jest, cucumber
yarn dlx quiesco init --runner vitest
```

`quiesco test`, `quiesco ui` and `quiesco list` then use the runner whose Quiesco package is installed, so
`--runner` is not needed. When several are installed (or none), they use Cucumber, as Quiesco 0.6 and
earlier did; `--runner` picks another.

## Setting one up

Each runner has a page on its config:

> [card] [Vitest](https://docs.quiesco.dev/vitest.md)
>
> vitest.config.mts, the quiesco() options and the app fixture

> [card] [Jest](https://docs.quiesco.dev/jest.md)
>
> The preset, jest.config.cjs and the global quiesco

> [card] [Cucumber](https://docs.quiesco.dev/cucumber.md)
>
> cucumber.mjs, registerQuiesco() options and the World

## Running

Run the tests with `npx quiesco test --platform ios` (`--runner vitest|jest|cucumber` to choose another than
the installed one), or from the browser with [`quiesco ui`](./ui). All three are in
[examples/todo-app](https://github.com/h2nology/quiesco/tree/main/examples/todo-app); details in
[Vitest, Jest and other runners](https://docs.quiesco.dev/api-custom-runners.md), several devices at once in
[parallel runs](https://docs.quiesco.dev/parallel.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.