This commit is contained in:
Sven van Heugten 2026-03-04 07:03:47 +01:00
parent a330b66ad0
commit 66a30d61cf
No known key found for this signature in database
GPG key ID: D612F88666F4F660

View file

@ -61,7 +61,7 @@ dotnet test --no-build
```
~~~
This script will be run with `set -euo pipefail`, and the commit will be considered correct if the script exits succesfully.
This script will be run with `set -euo pipefail`, and the commit will be considered correct if the script exits successfully.
You can technically assert that a command fails by writing `! ... || exit 1`, or write assertions about a command's output by piping it to `grep`, but doing so won't lead to very useful error messages when things go wrong. To make those things easier, there are some helper functions included, which are inspired by [bats](https://github.com/bats-core/bats-core) and [bats-assert](https://github.com/bats-core/bats-assert):