tests: Add a 'print failures only' mode to 'make test', called 'make quiet-test'.

Fixes zsh-users/zsh-syntax-highlighting#262.

Currently, 'make quiet-test' uses Perl.  However, since it is considered a development
tool rather than a user-facing tool, users and downstream packages needn't install Perl.
Furthermore, even this dev-only dependency may be dropped in the future.

The only difference between tests/tap-filter here and the one in the issue is using
a `cat` subshell v. using 'undef $/; <STDIN>'.
This commit is contained in:
Daniel Shahaf
2016-01-02 21:22:01 +00:00
parent 936e2e9314
commit 9b64ad750f
4 changed files with 65 additions and 1 deletions

View File

@@ -38,6 +38,9 @@ All tests may be run with
make test
which will run all highlighting tests and report results in [TAP format][TAP].
By default, the results of all tests will be printed; to show only "interesting"
results (tests that failed but were expected to succeed, or vice-versa), run
`make quiet-test` (or `make test QUIET=y`).
[TAP]: http://testanything.org/