Changeset 19683 in josm for trunk/pom.xml


Ignore:
Timestamp:
2026-11-10T16:37:31+01:00 (2 hours 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.