all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Need message-fn arg back in ert-run-tests-interactively
@ 2023-07-09 15:49 Robert Weiner
  2023-07-11  6:18 ` Robert Weiner
  2023-09-05 22:43 ` Stefan Kangas
  0 siblings, 2 replies; 5+ messages in thread
From: Robert Weiner @ 2023-07-09 15:49 UTC (permalink / raw)
  To: emacs-devel; +Cc: Lidell Mats

[-- Attachment #1: Type: text/plain, Size: 1039 bytes --]

In ert.el of Emacs 27.1, we have a simple ability to override the 'message'
function when running ert tests interactively by setting the message-fn
argument here:

;; Should OUTPUT-BUFFER-NAME and MESSAGE-FN really be arguments here?
;; They are needed only for our automated self-tests at the moment.
;; Or should there be some other mechanism?
;;;###autoload
(defun ert-run-tests-interactively (selector
                                    &optional output-buffer-name message-fn)

But in recent Emacs versions this function takes only the selector
argument, with no clear way of how to override messaging behavior so that a
message from a test case (rather than ert itself) can remain in the
minibuffer after a test case finishes:

(defun ert-run-tests-interactively (selector)
  "Run the tests specified by SELECTOR and display the results in a buffer.

SELECTOR works as described in `ert-select-tests'."

This would be very useful behavior to have back.  Is there any simple way
to do it now or can you add it back in?

Thanks,

Bob

[-- Attachment #2: Type: text/html, Size: 2177 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-09-07  6:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-09 15:49 Need message-fn arg back in ert-run-tests-interactively Robert Weiner
2023-07-11  6:18 ` Robert Weiner
2023-09-05 22:43 ` Stefan Kangas
2023-09-07  1:21   ` Richard Stallman
2023-09-07  6:22     ` Juri Linkov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.