Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 17974 invoked from network); 3 Feb 2009 14:54:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Feb 2009 14:54:21 -0000 Received: (qmail 19980 invoked by uid 500); 3 Feb 2009 14:54:21 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 19807 invoked by uid 500); 3 Feb 2009 14:54:20 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 19748 invoked by uid 99); 3 Feb 2009 14:54:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2009 06:54:20 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2009 14:54:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B48E9234C4B0 for ; Tue, 3 Feb 2009 06:53:59 -0800 (PST) Message-ID: <91359215.1233672839738.JavaMail.jira@brutus> Date: Tue, 3 Feb 2009 06:53:59 -0800 (PST) From: "Pinaki Poddar (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (OPENJPA-770) Use annotations instead of excluding tests in pom.xml In-Reply-To: <1014158076.1226508224382.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669974#action_12669974 ] Pinaki Poddar commented on OPENJPA-770: --------------------------------------- A small utility is available to find all tests that are marked with @AllowFailure. It is general purpose to detect other kinds of things but its main() is hardcoded for its original purpose. The following small script should show how this works: 1. Go to root of OpenJPA directory 2. Execute the following @setlocal set SERP_JAR=c:\Documents and Settings\Administrator\.m2\repository\net\sourceforge\serp\serp\1.13.1\serp-1.13.1.jar SET CLASSPATH=openjpa-persistence-jdbc\target\test-classes;%SERP_JAR% java org.apache.openjpa.persistence.test.ClassSelector @endlocal 3. It prints something like this on console: Found 3 classes under C:\work\openjpa-1.3.0 that extends org.apache.openjpa.persistence.test.SingleEMTestCase or org.apache.openjpa.persistence.test.SingleEMFTestCase or org.apache.openjpa.persistence.kernel.BaseKernelTest or org.apache.openjpa.persistence.query.BaseQueryTest or org.apache.openjpa.persistence.jdbc.kernel.BaseJDBCTest or org.apache.openjpa.persistence.common.utils.AbstractTestCase and annotatated with org.apache.openjpa.persistence.test.AllowFailure org.apache.openjpa.persistence.jdbc.annotations.TestSequenceGenerator org.apache.openjpa.persistence.jdbc.query.TestQueryParameterBinding org.apache.openjpa.persistence.kernel.TestInitialValueFetching > Use annotations instead of excluding tests in pom.xml > ----------------------------------------------------- > > Key: OPENJPA-770 > URL: https://issues.apache.org/jira/browse/OPENJPA-770 > Project: OpenJPA > Issue Type: Sub-task > Affects Versions: 2.0.0 > Reporter: Michael Dick > Assignee: Tim McConnell > Fix For: 2.0.0 > > Attachments: OPENJPA-770.patch > > Original Estimate: 3h > Remaining Estimate: 3h > > In openjpa-persistence-jdbc/pom.xml there are a lot of excluded testcases. Instead of hard coding these in pom.xml we should use the new annotation that Pinaki introduced in the "parent" JIRA issue. > The list of excluded tests can be found in pom.xml, here's a subsection of them > > org/apache/openjpa/persistence/jpql/clauses/TestEJBQueryInterface.java > org/apache/openjpa/persistence/kernel/TestInitialValueFetching.java > org/apache/openjpa/persistence/kernel/TestOpenResultsCommit.java > org/apache/openjpa/persistence/query/TestQuotedNumbersInFilters2.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.