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