Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Problem with tycho-surefire-plugin and include/exclude patterns

I am trying to get the tycho-surefire-plugin to run a specific test.

My directory layout:

${project.root}
|   .classpath
|   .project
|   build.properties
|   pom.xml
|   ...
|      
+---src
|   +---main
|   |   +---java
|   |   |   \---
|               ...
|   |                  
|   \---test
|       \---java
|           \---org
|               \---eclipse
|                   \---persistence
|                       \---tools
|                           \---oracleddl
|                               \---test
|                                   |   AllTests.java
|                                   |   TestHelper.java
|                                   |  
|                                   +---databasetypebuilder
|                                   |       DatabaseTypeBuilderTestSuite.java
|                                   |       IOTTableDDLTestSuite.java
|                                   |       ProcedureDDLTestSuite.java
|                                   |       TableDDLTestSuite.java
|                                   |       TransformsTestSuite.java
|                                   |       TypeResolutionTestSuite.java
|                                   |      
|                                   +---ddlparser
|                                   |       CaseSensitivePackageTestSuite.java
|                                   |       DDLParserTestSuite.java
|                                   |       FunctionDDLTestSuite.java
|                                   |       PackageDDLTestSuite.java
|                                   |       ProcedureDDLTestSuite.java
|                                   |       TableDDLTestSuite.java
|                                   |       TypeDDLTestSuite.java
|                                   |      
|                                   \---visit
|                                           FunctionTypeTest.java
|                                           FunctionTypeVisitor.java
|                                           IntervalTypeTest.java
|                                           IntervalVisitor.java
|                                           PrecisionTypeTest.java
|                                           PrecisionTypeVisitor.java
|                                           ProcedureTypeTest.java
|                                           ProcedureTypeVisitor.java
|                                           SizedTypeTest.java
|                                           SizedTypeVisitor.java
|                                           TableTypeTest.java
|                                           TableTypeVisitor.java
|                                           VisitorsTestSuite.java



The AllTests.java file is annotated with:

@RunWith(Suite.class)
@SuiteClasses({
    AdvancedJDBCPackageTestSuite.class,
    ComplexPLSQLSFTestSuite.class,
    ComplexPLSQLSPTestSuite.class,
    CustomSQLTestSuite.class,
    .
    .
    .
    VeryLongIdentifierTestSuite.class
  }
)


So my goal is to get the tycho-surefire-plugin to run AllTests and then the rest of the tests are run from there.

In my pom.xml file, I specify the following:
<dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.8.2</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-surefire-plugin</artifactId>
                <configuration>
                    <testSuite>org.eclipse.persistence.tools.oracleddl.test</testSuite>
                    <testClass>org.eclipse.persistence.tools.oracleddl.test.AllTests</testClass>
                    <systemProperties combine.children="append">
                        <db.user>${db.user}</db.user>
                        <db.pwd>${db.pwd}</db.pwd>
                        <db.url>${db.url}</db.url>
                        <db.ddl.create>${db.ddl.create}</db.ddl.create>
                        <db.ddl.drop>${db.ddl.drop}</db.ddl.drop>
                        <db.ddl.debug>${db.ddl.debug}</db.ddl.debug>
                    </systemProperties>
                </configuration>
            </plugin>
        </plugins>
    </build>
The <testSuite> and <testClass> elements are ignored and the usual '**/*Test.java' pattern is being used.

I've tried various combinations of

<excludes>
    <exclude>**/*</exclude>
</excludes>
<includes>
    <include>**/AllTests.java</include>
</includes>
but nothing seems to work.

Any help would be greatly appreciated.
--
Oracle
Mike Norman | Principal Software Designer
Phone: +6132884638 | Fax: +6132382818
Server Technologies | EclipseLink Product
Oracle Canada | 45 O'Connor Street, Suite 400, Ottawa, Ontario | K1P 1A4

Hardware and
          Software, Engineered to Work Together
Oracle is
          committed to developing practices and products that help
          protect the environment

Back to the top