openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pinaki Poddar (JIRA)" <>
Subject [jira] Commented: (OPENJPA-770) Use annotations instead of excluding tests in pom.xml
Date Tue, 03 Feb 2009 14:53:59 GMT


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
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

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


> Use annotations instead of excluding tests in pom.xml
> -----------------------------------------------------
>                 Key: OPENJPA-770
>                 URL:
>             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
> <!-- exclude new tests that aren't passing yet -->
>                         <exclude>org/apache/openjpa/persistence/jpql/clauses/</exclude>
>                         <exclude>org/apache/openjpa/persistence/kernel/</exclude>
>                         <exclude>org/apache/openjpa/persistence/kernel/</exclude>
>                         <exclude>org/apache/openjpa/persistence/query/</exclude>

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message