# 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 %}
