Skip to content

Commit

Permalink
104: removed test inclusion specifications
Browse files Browse the repository at this point in the history
Task-Url: #104
  • Loading branch information
LorenzoBettini committed Apr 9, 2021
1 parent 1e322ab commit e2d92bc
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 144 deletions.
Expand Up @@ -42,7 +42,6 @@
<version>${tycho-version}</version>
<executions>
<execution>
<!-- compiler tests need UI -->
<id>default-test</id>
<phase>integration-test</phase>
<configuration>
Expand Down
3 changes: 0 additions & 3 deletions jbase.example.jbasescript.tests/pom.xml
Expand Up @@ -44,9 +44,6 @@
<!-- tycho.testArgLine repeated to re-use the configuration
for argLine for jacoco agent -->
<argLine>${memoryArgs} ${moduleProperties}</argLine>
<includes>
<include>**/jbase/example/jbasescript/tests/*Test.java</include>
</includes>
</configuration>
<goals>
<goal>test</goal>
Expand Down
117 changes: 49 additions & 68 deletions jbase.example.purejbase.tests/pom.xml
@@ -1,76 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
<modelVersion>4.0.0</modelVersion>

<parent>
<relativePath>../jbase.parent/pom.xml</relativePath>
<groupId>net.sf.xtext-jbase</groupId>
<artifactId>jbase.parent</artifactId>
<version>0.9.0-SNAPSHOT</version>
</parent>
<parent>
<relativePath>../jbase.parent/pom.xml</relativePath>
<groupId>net.sf.xtext-jbase</groupId>
<artifactId>jbase.parent</artifactId>
<version>0.9.0-SNAPSHOT</version>
</parent>

<artifactId>jbase.example.purejbase.tests</artifactId>
<packaging>eclipse-test-plugin</packaging>

<properties>
<!-- Workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=397015 -->
<sonar.sources></sonar.sources>
<sonar.tests>src,xtend-gen</sonar.tests>
</properties>
<artifactId>jbase.example.purejbase.tests</artifactId>
<packaging>eclipse-test-plugin</packaging>

<build>
<plugins>
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
</plugin>
<properties>
<!-- Workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=397015 -->
<sonar.sources></sonar.sources>
<sonar.tests>src,xtend-gen</sonar.tests>
</properties>

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<!-- compiler tests need an OSGI environment, but no UI -->
<id>default-test</id>
<phase>integration-test</phase>
<configuration>
<skip>${swtbot.tests.only}</skip>
<useUIHarness>false</useUIHarness>
<useUIThread>false</useUIThread>
<!-- tycho.testArgLine repeated to re-use the configuration for argLine
for jacoco agent -->
<argLine>${memoryArgs} ${moduleProperties}</argLine>
<includes>
<include>**/purejbase/tests/*Test.java</include>
</includes>
</configuration>
<goals>
<goal>test</goal>
</goals>
</execution>
<!-- <execution> -->
<!-- <id>TychoSurefirePluginUiTest</id> -->
<!-- <phase>integration-test</phase> -->
<!-- <configuration> -->
<!-- <skip>${swtbot.tests.only}</skip> -->
<!-- <useUIHarness>true</useUIHarness> -->
<!-- <useUIThread>true</useUIThread> -->
<!-- tycho.testArgLine repeated to re-use the configuration for argLine for jacoco agent -->
<!-- <argLine>${tycho.testArgLine} ${memoryArgs} -DbuildingWithTycho=true</argLine> -->
<!-- <includes> -->
<!-- <include>**/jbase/ui/tests/*Test.java</include> -->
<!-- </includes> -->
<!-- </configuration> -->
<!-- <goals> -->
<!-- <goal>test</goal> -->
<!-- </goals> -->
<!-- </execution> -->
</executions>
</plugin>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
</plugin>

</plugins>
</build>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<!-- compiler tests need an OSGI environment, but no UI -->
<id>default-test</id>
<phase>integration-test</phase>
<configuration>
<skip>${swtbot.tests.only}</skip>
<useUIHarness>false</useUIHarness>
<useUIThread>false</useUIThread>
<!-- tycho.testArgLine repeated to re-use the configuration
for argLine for jacoco agent -->
<argLine>${memoryArgs} ${moduleProperties}</argLine>
</configuration>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>
</project>
116 changes: 48 additions & 68 deletions jbase.testlanguage.tests/pom.xml
@@ -1,76 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
<modelVersion>4.0.0</modelVersion>

<parent>
<relativePath>../jbase.parent/pom.xml</relativePath>
<groupId>net.sf.xtext-jbase</groupId>
<artifactId>jbase.parent</artifactId>
<version>0.9.0-SNAPSHOT</version>
</parent>
<parent>
<relativePath>../jbase.parent/pom.xml</relativePath>
<groupId>net.sf.xtext-jbase</groupId>
<artifactId>jbase.parent</artifactId>
<version>0.9.0-SNAPSHOT</version>
</parent>

<artifactId>jbase.testlanguage.tests</artifactId>
<packaging>eclipse-test-plugin</packaging>

<properties>
<!-- Workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=397015 -->
<sonar.sources></sonar.sources>
<sonar.tests>src,xtend-gen</sonar.tests>
</properties>
<artifactId>jbase.testlanguage.tests</artifactId>
<packaging>eclipse-test-plugin</packaging>

<build>
<plugins>
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
</plugin>
<properties>
<!-- Workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=397015 -->
<sonar.sources></sonar.sources>
<sonar.tests>src,xtend-gen</sonar.tests>
</properties>

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<!-- compiler tests need an OSGI environment, but no UI -->
<id>default-test</id>
<phase>integration-test</phase>
<configuration>
<skip>${swtbot.tests.only}</skip>
<useUIHarness>false</useUIHarness>
<useUIThread>false</useUIThread>
<!-- tycho.testArgLine repeated to re-use the configuration for argLine
for jacoco agent -->
<argLine>${memoryArgs} ${moduleProperties}</argLine>
<includes>
<include>**/jbase/testlanguage/tests/*Test.java</include>
</includes>
</configuration>
<goals>
<goal>test</goal>
</goals>
</execution>
<!-- <execution> -->
<!-- <id>TychoSurefirePluginUiTest</id> -->
<!-- <phase>integration-test</phase> -->
<!-- <configuration> -->
<!-- <skip>${swtbot.tests.only}</skip> -->
<!-- <useUIHarness>true</useUIHarness> -->
<!-- <useUIThread>true</useUIThread> -->
<!-- tycho.testArgLine repeated to re-use the configuration for argLine for jacoco agent -->
<!-- <argLine>${tycho.testArgLine} ${memoryArgs} -DbuildingWithTycho=true</argLine> -->
<!-- <includes> -->
<!-- <include>**/jbase/ui/tests/*Test.java</include> -->
<!-- </includes> -->
<!-- </configuration> -->
<!-- <goals> -->
<!-- <goal>test</goal> -->
<!-- </goals> -->
<!-- </execution> -->
</executions>
</plugin>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
</plugin>

</plugins>
</build>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>default-test</id>
<phase>integration-test</phase>
<configuration>
<skip>${swtbot.tests.only}</skip>
<useUIHarness>false</useUIHarness>
<useUIThread>false</useUIThread>
<!-- tycho.testArgLine repeated to re-use the configuration
for argLine for jacoco agent -->
<argLine>${memoryArgs} ${moduleProperties}</argLine>
</configuration>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>
</project>
4 changes: 0 additions & 4 deletions jbase.ui.tests/pom.xml
Expand Up @@ -48,17 +48,13 @@
<version>${tycho-version}</version>
<executions>
<execution>
<!-- compiler tests need UI -->
<id>default-test</id>
<phase>integration-test</phase>
<configuration>
<skip>${swtbot.tests.only}</skip>
<useUIHarness>true</useUIHarness>
<useUIThread>true</useUIThread>
<argLine>${additionalTestArgLine} ${os-jvm-flags} ${memoryArgs} -DbuildingWithTycho=true</argLine>
<includes>
<include>**/jbase/ui/tests/*Test.java</include>
</includes>
</configuration>
<goals>
<goal>test</goal>
Expand Down

0 comments on commit e2d92bc

Please sign in to comment.