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