[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tagging ERT tests with bug numbers

From: Ted Zlatanov
Subject: Re: tagging ERT tests with bug numbers
Date: Fri, 04 Aug 2017 09:28:03 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

On Fri, 04 Aug 2017 09:22:26 +0200 Michael Albinus <address@hidden> wrote: 

MA> Ted Zlatanov <address@hidden> 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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]