From zeta-dev-return-860-apmail-incubator-zeta-dev-archive=incubator.apache.org@incubator.apache.org Thu Feb 9 11:42:13 2012 Return-Path: X-Original-To: apmail-incubator-zeta-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-zeta-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F08C59CEB for ; Thu, 9 Feb 2012 11:42:12 +0000 (UTC) Received: (qmail 32696 invoked by uid 500); 9 Feb 2012 11:42:12 -0000 Delivered-To: apmail-incubator-zeta-dev-archive@incubator.apache.org Received: (qmail 32578 invoked by uid 500); 9 Feb 2012 11:42:11 -0000 Mailing-List: contact zeta-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zeta-dev@incubator.apache.org Delivered-To: mailing list zeta-dev@incubator.apache.org Received: (qmail 32570 invoked by uid 99); 9 Feb 2012 11:42:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 11:42:11 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jamespic@gmail.com designates 209.85.215.47 as permitted sender) Received: from [209.85.215.47] (HELO mail-lpp01m010-f47.google.com) (209.85.215.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 11:42:03 +0000 Received: by lahc1 with SMTP id c1so1409530lah.6 for ; Thu, 09 Feb 2012 03:41:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=TW3gdUheC1oRnWAMLDYy/4SGe7krWBPxpoHWnp3I38w=; b=DEdYSBoYYWPK2gMM25gFsDl42fmr+vD41yar7XRl6AOVbk4fFJ2hdeEccR9hyfVFGN z0ViRyqMkbHk+ZQXnvxzTLHFnAI00Re86iMxZSL43PtbsXooCX9Oe5WLiBORXSI+tkP/ scp/mA8po4NQ3eFYWjxT5TDedNdJsR4PBUEL8= Received: by 10.112.48.9 with SMTP id h9mr481490lbn.20.1328787703165; Thu, 09 Feb 2012 03:41:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.109.202 with HTTP; Thu, 9 Feb 2012 03:41:23 -0800 (PST) From: James Pic Date: Thu, 9 Feb 2012 11:41:23 +0000 Message-ID: To: zetacomponents Content-Type: multipart/alternative; boundary=bcaec554ddec0774cf04b8867f4f X-Virus-Checked: Checked by ClamAV on apache.org Subject: [zeta-dev] PHPUnit regression: cannot run the testsuite of one component --bcaec554ddec0774cf04b8867f4f Content-Type: text/plain; charset=UTF-8 Hi all, Before, we could run the test suite of a component as such: UnitTest/src/runtests.php Database But the new test runner does not allow this. For example, phpunit --filter Database will fail in two ways: 0) test cases without Database in the class name will be omited (ie. ezcQueryExpressionTest from Database/tests/sqlabstraction/expression_test.php) 1) test cases with Database in the class name from other components will be included (ezcDatabaseSchemaGenericTest from DatabaseSchema/tests/generic_test.php) Solutions: 0) Flyingmana suggested to use regexps in --filter, document the regexp to use for each component 1) annotate every test method with @group ComponentName I'm not sure about these solutions because correct me if I'm wrong but that looks error prone. So, should we start implementing any of these solutions ? Cheers from Lisboa at eZ Winter Conference --bcaec554ddec0774cf04b8867f4f--