> For the complete documentation index, see [llms.txt](https://elixir.petrolidas.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://elixir.petrolidas.com/bits-and-pieces/run-tests-and-stop-on-first-failure.md).

# Run tests and stop on first failure

Run tests and stop on first failure

Here's how to run all tests in the same order as in the file and stop after the first failure:

```shell
mix test --seed 0 --max-failures 1
```

{% hint style="info" %}
Do you have feedback or questions about this? [Email me](mailto:petros@hey.com).
{% endhint %}
