all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: tagging ERT tests with bug numbers
Date: Fri, 04 Aug 2017 09:28:03 -0400	[thread overview]
Message-ID: <87ini37998.fsf@lifelogs.com> (raw)
In-Reply-To: 87tw1nn6fh.fsf@detlef

On Fri, 04 Aug 2017 09:22:26 +0200 Michael Albinus <michael.albinus@gmx.de> wrote: 

MA> Ted Zlatanov <tzz@lifelogs.com> writes:
>> I think it would be terrific if we could tag ERT tests with the bug ID
>> and URL, so these could be shown automatically if the test failed.
>> 
>> Is there a way to do that? I know we can put properties onto symbols,
>> but maybe there's a way to tag ERT tests in particular? I don't see
>> anything in the docs besides predicates, which these tags are not.

MA> ERT tests have the :tags list. We use it for example like

MA>   :tags '(:expensive-test)

Huh. That's not in the ERT docs at all AFAIK. It's in the `ert-deftest'
docstring if you squint hard enough.

MA> AFAIK, there are no restrictions on tags, so we could define our
MA> own. Something like

MA>   :tags '((:bug <nnn>))

MA> And a helper function to show the bug, either via a url (derived from
MA> the bug number), or a debbugs-gnu function.

Yeah, that would be OK, although I personally find a plain plist more
readable. Either way, it would be useful. Do you want to officially
define the tag format and I can update the docs?

Ted




  reply	other threads:[~2017-08-04 13:28 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-30 15:50 Question about test failure on Hydra Stephen Berman
2017-07-30 15:59 ` Eli Zaretskii
2017-07-30 20:23   ` Stephen Berman
2017-07-31  3:26     ` Eli Zaretskii
2017-07-31  9:20       ` Stephen Berman
2017-08-01  3:12         ` Eli Zaretskii
2017-08-01  9:57           ` Stephen Berman
2017-08-01 13:49             ` Eli Zaretskii
2017-08-01 15:23               ` Stephen Berman
2017-08-02 15:27                 ` Stephen Berman
2017-08-01  4:39         ` Tino Calancha
2017-08-01  9:57           ` Stephen Berman
2017-08-01 10:17             ` Tino Calancha
2017-08-01 10:47               ` Stephen Berman
2017-08-05 13:07               ` Tino Calancha
2017-08-05 21:34                 ` Stephen Berman
2017-08-03 19:41 ` tagging ERT tests with bug numbers (was: Question about test failure on Hydra) Ted Zlatanov
2017-08-04  7:22   ` tagging ERT tests with bug numbers Michael Albinus
2017-08-04 13:28     ` Ted Zlatanov [this message]
2017-08-04 14:50       ` Michael Albinus

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=87ini37998.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=emacs-devel@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.