mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
test harness: Let tests fail early by exiting non-zero or by setting a flag.
Fixes #609.
This commit is contained in:
parent
c4bb260a30
commit
3ff5bec82e
2 changed files with 14 additions and 4 deletions
|
|
@ -24,11 +24,15 @@ point will not fail the test), and `$todo` is used as the explanation.
|
|||
If a test sets `$skip_test` to a non-empty string, the test will be skipped
|
||||
with the provided string as the reason.
|
||||
|
||||
3.
|
||||
3.
|
||||
If a test sets `$fail_test` to a non-empty string, the test will be skipped
|
||||
with the provided string as the reason.
|
||||
|
||||
4.
|
||||
If a test sets `unsorted=1` the order of highlights in `$expected_region_highlight`
|
||||
need not match the order in `$region_highlight`.
|
||||
|
||||
4.
|
||||
5.
|
||||
Normally, tests fail if `$expected_region_highlight` and `$region_highlight`
|
||||
have different numbers of elements. To mark this check as expected to fail,
|
||||
tests may set `$expected_mismatch` to an explanation string (like `$todo`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue