all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Undefining an ERT test?
@ 2020-06-11 21:52 Douglas Lewan
  2020-06-11 22:10 ` Joost Kremers
  0 siblings, 1 reply; 9+ messages in thread
From: Douglas Lewan @ 2020-06-11 21:52 UTC (permalink / raw)
  To: help-gnu-emacs

For me one flaw of ERT is that it runs tests in alphabetical order, not 
the order in which they were defined. I'd like to test initialization 
before I test more interesting function, for example.

To get around this my tests tend to begin with a 3 digit number 
(starting at 000), and I have code that will renumber them for me. (Test 
000-... runs before test 001-..., before 002-..., etc.) Unfortunately, 
ERT remembers the previous names (and the corresponding test) and when I 
want to run test 012-..., for example, with (ert "012-") ERT might pick 
up a "former" test with a matching name. This is not unsurmountable, but 
it's distracting and occasionally confusing.

So, the question is: Is there something like (fmakunbound) for ERT?

-- 
,Doug
d.lewan2000@gmail.com
(908) 720 7908

If this is what winning looks like, I'd hate to see what losing is.




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

end of thread, other threads:[~2020-06-12  6:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-11 21:52 Undefining an ERT test? Douglas Lewan
2020-06-11 22:10 ` Joost Kremers
2020-06-11 22:27   ` Douglas Lewan
2020-06-11 23:01     ` Joost Kremers
2020-06-11 23:22       ` Douglas Lewan
2020-06-11 23:37         ` Joost Kremers
2020-06-12  4:17           ` Douglas Lewan
2020-06-12  6:26             ` Joost Kremers
2020-06-12  6:51               ` Douglas Lewan

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.