Changeset 19683 in josm


Ignore:
Timestamp:
2026-11-10T16:37:31+01:00 (less than one hour ago)
Author:
gaben
Message:

Maven: register functional and performance tests as test sources

IDEs importing the Maven project (IntelliJ, Eclipse) only know testSourceDirectory and roots added by build-helper-maven-plugin, so test/functional and test/performance were not recognized as sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/nodist/pom.xml

    r19681 r19683  
    6262                    <artifactId>maven-clean-plugin</artifactId>
    6363                    <version>3.4.0</version>
     64                </plugin>
     65                <plugin>
     66                    <groupId>org.codehaus.mojo</groupId>
     67                    <artifactId>build-helper-maven-plugin</artifactId>
     68                    <version>3.6.1</version>
    6469                </plugin>
    6570                <plugin>
  • trunk/pom.xml

    r19682 r19683  
    493493              <goal>check</goal>
    494494            </goals>
     495          </execution>
     496        </executions>
     497      </plugin>
     498      <!-- Register test/functional and test/performance as test sources for IDEs (IntelliJ, Eclipse m2e).
     499           Bound after test-compile so default-testCompile does not build them into the unit test classes;
     500           maven-compiler-plugin below compiles them separately. -->
     501      <plugin>
     502        <groupId>org.codehaus.mojo</groupId>
     503        <artifactId>build-helper-maven-plugin</artifactId>
     504        <executions>
     505          <execution>
     506            <id>add-functional-performance-test-sources</id>
     507            <phase>process-test-classes</phase>
     508            <goals>
     509              <goal>add-test-source</goal>
     510            </goals>
     511            <configuration>
     512              <sources>
     513                <source>${test.dir}/functional</source>
     514                <source>${test.dir}/performance</source>
     515              </sources>
     516            </configuration>
    495517          </execution>
    496518        </executions>
Note: See TracChangeset for help on using the changeset viewer.