diff options
| author | Stefan Kangas | 2023-09-03 18:45:16 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2023-09-04 18:25:18 +0200 |
| commit | 62f7760e61900b6ac0fb513294129130446b17e7 (patch) | |
| tree | b59a0647398589c394e5b0ab60db815529701d53 /java/debug.sh | |
| parent | f9b43107ce706f351dcb88d1a4af1b3ffd9671c5 (diff) | |
| download | emacs-62f7760e61900b6ac0fb513294129130446b17e7.tar.gz emacs-62f7760e61900b6ac0fb513294129130446b17e7.zip | |
Add `skip-when` macro to `ert-deftest`
This can help avoid some awkward test skip conditions.
For example, this triple negation:
(skip-unless (not noninteractive))
Can be written as the simpler:
(skip-when noninteractive)
* lisp/emacs-lisp/ert.el (ert-deftest): Add new 'skip-when' macro.
(ert--skip-when): New internal function.
* doc/misc/ert.texi (Tests and Their Environment): Document above
new macro.
* test/lisp/emacs-lisp/ert-tests.el (ert-test-skip-when): New test.
Diffstat (limited to 'java/debug.sh')
0 files changed, 0 insertions, 0 deletions