all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Douglas Lewan <d.lewan2000@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Undefining an ERT test?
Date: Thu, 11 Jun 2020 17:52:31 -0400	[thread overview]
Message-ID: <30b33d01-3196-af12-fd6e-db9516829a49@gmail.com> (raw)

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.




             reply	other threads:[~2020-06-11 21:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-11 21:52 Douglas Lewan [this message]
2020-06-11 22:10 ` Undefining an ERT test? 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=30b33d01-3196-af12-fd6e-db9516829a49@gmail.com \
    --to=d.lewan2000@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.