1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-18 08:51:45 -08:00
emacs/doc
Stefan Kangas 62f7760e61 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.
2023-09-04 18:25:18 +02:00
..
emacs Open org-protocol:// links on Android 2023-09-02 10:06:05 +08:00
lispintro ; * doc/lispintro/emacs-lisp-intro.texi (car & cdr): Fix typo. 2023-06-25 08:27:01 +03:00
lispref Correct the handling of symbols with position in equal 2023-09-04 12:51:24 +00:00
man ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
misc Add skip-when macro to ert-deftest 2023-09-04 18:25:18 +02:00