From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: tagging ERT tests with bug numbers Date: Fri, 04 Aug 2017 09:28:03 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87ini37998.fsf@lifelogs.com> References: <87efsxexf5.fsf@rosalinde> <8760e4bfrn.fsf@lifelogs.com> <87tw1nn6fh.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1501856274 22080 195.159.176.226 (4 Aug 2017 14:17:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 4 Aug 2017 14:17:54 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 04 16:17:48 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dddQA-0005GH-8A for ged-emacs-devel@m.gmane.org; Fri, 04 Aug 2017 16:17:46 +0200 Original-Received: from localhost ([::1]:54790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dddQG-0001p3-2e for ged-emacs-devel@m.gmane.org; Fri, 04 Aug 2017 10:17:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddcf9-0000C1-At for emacs-devel@gnu.org; Fri, 04 Aug 2017 09:30:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddceD-0002tG-Rh for emacs-devel@gnu.org; Fri, 04 Aug 2017 09:29:10 -0400 Original-Received: from [195.159.176.226] (port=43199 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddceD-0002rB-IA for emacs-devel@gnu.org; Fri, 04 Aug 2017 09:28:13 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ddce5-0007WO-QM for emacs-devel@gnu.org; Fri, 04 Aug 2017 15:28:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 30 Original-X-Complaints-To: usenet@blaine.gmane.org X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Cancel-Lock: sha1:ZByLDX+twgB1YiRv9bFs3pItij0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217287 Archived-At: On Fri, 04 Aug 2017 09:22:26 +0200 Michael Albinus wrote: MA> Ted Zlatanov 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 )) 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