mirror of
https://github.com/casey/just.git
synced 2025-07-07 09:35:01 +00:00
Remove test!
macro from readme (#2648)
This commit is contained in:
parent
5d36e8fb74
commit
d5b9f0df6b
2 changed files with 4 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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' \
|
||||
.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue