Remove test! macro from readme (#2648)

This commit is contained in:
Casey Rodarmor 2025-03-01 14:13:16 -08:00 committed by GitHub
parent 5d36e8fb74
commit d5b9f0df6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 8 deletions

View file

@ -4311,12 +4311,9 @@ unindented value. However, there are not integration tests for all possible
cases. These are covered by faster, more concise unit tests that call
`unindent()` directly.
Existing integration tests are in two forms, those that use the `test!` macro
and those that use the `Test` struct directly. The `test!` macro, while often
concise, is less flexible and harder to understand, so new tests should use the
`Test` struct. The `Test` struct is a builder which allows for easily invoking
`just` with a given `justfile`, arguments, and environment variables, and
checking the program's stdout, stderr, and exit code .
Integration tests use the `Test` struct, a builder which allows for easily
invoking `just` with a given `justfile`, arguments, and environment variables,
and checking the program's stdout, stderr, and exit code .
### Contribution Workflow

View file

@ -7,10 +7,9 @@ if ! which rg > /dev/null; then
exit 1
fi
! rg \
--glob !bin/forbid \
--glob !CHANGELOG.md \
--glob !bin/forbid \
--ignore-case \
'dbg!|fixme|todo|xxx' \
.