Skip to content

Commit bdfc70e

Browse files
jason-faustlaeubi
authored andcommitted
Minimal test for issue 230
1 parent e972652 commit bdfc70e

File tree

5 files changed

+40
-0
lines changed

5 files changed

+40
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<modelVersion>4.0.0</modelVersion>
3+
<groupId>tycho-its-project.compiler.mavenCompilerPlugin.moduleWithTests</groupId>
4+
<artifactId>c.m.m</artifactId>
5+
<version>0.0.1-SNAPSHOT</version>
6+
<build>
7+
<pluginManagement>
8+
<plugins>
9+
<plugin>
10+
<groupId>org.apache.maven.plugins</groupId>
11+
<artifactId>maven-compiler-plugin</artifactId>
12+
<version>3.10.1</version>
13+
<configuration>
14+
<compilerId>jdt</compilerId>
15+
<release>17</release>
16+
</configuration>
17+
<dependencies>
18+
<dependency>
19+
<groupId>org.eclipse.tycho</groupId>
20+
<artifactId>tycho-compiler-jdt</artifactId>
21+
<version>${tycho-version}</version>
22+
</dependency>
23+
</dependencies>
24+
</plugin>
25+
</plugins>
26+
</pluginManagement>
27+
</build>
28+
</project>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package ex;
2+
public class A {}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module ex {}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package ex;
2+
class ATest {}

tycho-its/src/test/java/org/eclipse/tycho/test/compiler/MavenCompilerPluginTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ public void testJDTCompilerId() throws Exception {
3232
verifier.verifyTextInLog("field Foo.unused is not used");
3333
}
3434

35+
@Test
36+
public void testMavenCompilerPluginModuleWithTests() throws Exception {
37+
Verifier verifier = getVerifier("compiler.mavenCompilerPlugin.moduleWithTests", false);
38+
verifier.executeGoal("verify");
39+
verifier.verifyErrorFreeLog();
40+
}
41+
3542
@Test
3643
public void testAdditionalBundles() throws Exception {
3744
Verifier verifier = getVerifier("compiler.additional.bundles", true);

0 commit comments

Comments
 (0)