Skip to content

Commit 9545ed2

Browse files
evanchoolyclaude
andauthored
Narrow critter integration tests to only copy models package (#4191)
Instead of copying the entirety of core/src/test, only copy dev/morphia/test/models/** so we can test that critter-maven properly generates the required classes for those models. Also removes the unnecessary test resource copying. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e020b0d commit 9545ed2

File tree

1 file changed

+3
-32
lines changed
  • critter/critter-integration-tests

1 file changed

+3
-32
lines changed

critter/critter-integration-tests/pom.xml

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161

6262
<build>
6363
<plugins>
64-
<!--
6564
<plugin>
6665
<groupId>org.apache.maven.plugins</groupId>
6766
<artifactId>maven-resources-plugin</artifactId>
@@ -78,22 +77,9 @@
7877
<resources>
7978
<resource>
8079
<directory>${maven.multiModuleProjectDirectory}/core/src/test/java</directory>
81-
<filtering>false</filtering>
82-
</resource>
83-
</resources>
84-
</configuration>
85-
</execution>
86-
<execution>
87-
<id>copy-test-resources</id>
88-
<phase>generate-test-resources</phase>
89-
<goals>
90-
<goal>copy-resources</goal>
91-
</goals>
92-
<configuration>
93-
<outputDirectory>${project.basedir}/src/core-test/resources</outputDirectory>
94-
<resources>
95-
<resource>
96-
<directory>${maven.multiModuleProjectDirectory}/core/src/test/resources</directory>
80+
<includes>
81+
<include>dev/morphia/test/models/**</include>
82+
</includes>
9783
<filtering>false</filtering>
9884
</resource>
9985
</resources>
@@ -118,23 +104,8 @@
118104
</sources>
119105
</configuration>
120106
</execution>
121-
<execution>
122-
<id>add-core-test-resources</id>
123-
<phase>generate-test-resources</phase>
124-
<goals>
125-
<goal>add-test-resource</goal>
126-
</goals>
127-
<configuration>
128-
<resources>
129-
<resource>
130-
<directory>${project.basedir}/src/core-test/resources</directory>
131-
</resource>
132-
</resources>
133-
</configuration>
134-
</execution>
135107
</executions>
136108
</plugin>
137-
-->
138109
<plugin>
139110
<groupId>${project.groupId}</groupId>
140111
<artifactId>critter-maven</artifactId>

0 commit comments

Comments
 (0)