Re: [tap] Parse error vs failure
Steffen Schwigon <ss5@renormalist.net> Sun, 01 February 2009 20:42 UTC
Return-Path: <tap-bounces@ietf.org>
X-Original-To: tap-archive@ietf.org
Delivered-To: ietfarch-tap-archive@core3.amsl.com
Received: from [127.0.0.1] (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id EEBCC3A6947; Sun, 1 Feb 2009 12:42:00 -0800 (PST)
X-Original-To: tap@core3.amsl.com
Delivered-To: tap@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 206173A6947 for <tap@core3.amsl.com>; Sun, 1 Feb 2009 12:41:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jjwTyX+DY8rl for <tap@core3.amsl.com>; Sun, 1 Feb 2009 12:41:58 -0800 (PST)
Received: from h132974.serverkompetenz.net (renormalist.net [81.169.141.46]) by core3.amsl.com (Postfix) with ESMTP id A8D143A6882 for <tap@ietf.org>; Sun, 1 Feb 2009 12:41:57 -0800 (PST)
Received: from ss5 by h132974.serverkompetenz.net with local (Exim 4.63) (envelope-from <ss5@renormalist.net>) id 1LTj8J-0000NX-Lf for tap@ietf.org; Sun, 01 Feb 2009 21:41:35 +0100
To: tap@ietf.org
References: <4984B200.6060907@pobox.com> <439925.21633.qm@web65707.mail.ac4.yahoo.com>
From: Steffen Schwigon <ss5@renormalist.net>
Date: Sun, 01 Feb 2009 21:41:35 +0100
In-Reply-To: <439925.21633.qm@web65707.mail.ac4.yahoo.com> (Ovid's message of "Sun, 1 Feb 2009 05:36:45 -0800 (PST)")
Message-ID: <87wsc9uby8.fsf@renormalist.net>
User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.19 (linux)
MIME-Version: 1.0
Subject: Re: [tap] Parse error vs failure
X-BeenThere: tap@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Test Anything Protocol WG discussions <tap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tap>, <mailto:tap-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/pipermail/tap>
List-Post: <mailto:tap@ietf.org>
List-Help: <mailto:tap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tap>, <mailto:tap-request@ietf.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tap-bounces@ietf.org
Errors-To: tap-bounces@ietf.org
Ovid <publiustemp-tapx@yahoo.com> writes: > ----- Original Message ---- > >> From: Michael G Schwern <schwern@pobox.com> > >> In Oslo, when we came across an edge case that was considered >> nonsense, the tendency was to say that its a parse error. For >> example, "not ok 4 # SKIP", because why would you fail a test that >> didn't run? Also "1..0" without a skip, because why would you not >> run any tests and yet not skip the test? > > Your arguments made sense, but I have a question: what does 'not ok > 4 # SKIP' even mean? To my mind, that's a parse error because > something has gone horribly wrong or the person writing the TAP > producer is terribly confused. There's no way the parser can > understand what the intent is, so making it a parse error makes > sense to me because if *I* can't parse it, how can a TAP consumer? Example story: I, for instance, mark failing results *dynamically* as "# TODO" under cirumstances when I generically convert results from foreign test suites into TAP. This way I keep them "ok enough" but can still recognize the failure. I once had the idea to use "# SKIP" to model slightly different situations from those foreign suites. I quickly reverted due to some amount of stupidity in it. But it's anyway a nice niche for expressing test results. I therefore wouldn't strongly forbid them, particularly not early in the grammar. Kind regards, Steffen -- Steffen Schwigon <ss5@renormalist.net> Dresden Perl Mongers <http://dresden-pm.org/> German Perl-Workshop 2009 <http://www.perl-workshop.de/en/2009> _______________________________________________ tap mailing list tap@ietf.org https://www.ietf.org/mailman/listinfo/tap
- [tap] Parse error vs failure Michael G Schwern
- Re: [tap] Parse error vs failure Aristotle Pagaltzis
- Re: [tap] Parse error vs failure David E. Wheeler
- Re: [tap] Parse error vs failure Michael Peters
- Re: [tap] Parse error vs failure Steffen Schwigon
- Re: [tap] [offlist] Re: Parse error vs failure Aristotle Pagaltzis
- Re: [tap] Parse error vs failure Ovid
- Re: [tap] Parse error vs failure Steffen Schwigon
- Re: [tap] Parse error vs failure Aristotle Pagaltzis
- Re: [tap] Parse error vs failure Andy Armstrong
- Re: [tap] Parse error vs failure Andy Armstrong
- Re: [tap] Parse error vs failure Michael G Schwern
- Re: [tap] Parse error vs failure Steffen Schwigon