|
87 | 87 | <include name="hamcrest*.jar" /> |
88 | 88 | <include name="junit*.jar" /> |
89 | 89 | <include name="opentest4j*.jar" /> |
| 90 | + <include name="testcontainers*.jar" /> |
90 | 91 | </fileset> |
91 | 92 | <path refid="classpath"/> |
92 | 93 | </path> |
|
277 | 278 | <fail if="integration.tests.failed">Indexer integration tests failed!</fail> |
278 | 279 | </target> |
279 | 280 |
|
| 281 | + <!-- ================================================================== --> |
| 282 | + <!-- Run protocol plugin integration tests (Testcontainers) --> |
| 283 | + <!-- ================================================================== --> |
| 284 | + <target name="test-protocol-integration" depends="compile-test, deploy" if="test.available"> |
| 285 | + <echo message="Running protocol integration tests for plugin: ${name}"/> |
| 286 | + <junitlauncher printSummary="true" haltOnFailure="false" failureProperty="protocol.integration.tests.failed"> |
| 287 | + <classpath refid="test.classpath"/> |
| 288 | + <testclasses outputDir="${build.test}"> |
| 289 | + <listener type="legacy-plain" sendSysOut="true" sendSysErr="true"/> |
| 290 | + <listener type="legacy-xml" sendSysOut="true" sendSysErr="true"/> |
| 291 | + <fork forkMode="perTestClass"> |
| 292 | + <jvmarg value="-Xmx2000m"/> |
| 293 | + <sysproperty key="test.data" value="${build.test}/data"/> |
| 294 | + <sysproperty key="test.input" value="${root}/data"/> |
| 295 | + <sysproperty key="testcontainers.reuse.enable" value="true"/> |
| 296 | + <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"/> |
| 297 | + </fork> |
| 298 | + <fileset dir="${build.test}"> |
| 299 | + <include name="**/IT*.class"/> |
| 300 | + <include name="**/*IT.class"/> |
| 301 | + <include name="**/*IntegrationTest.class"/> |
| 302 | + </fileset> |
| 303 | + </testclasses> |
| 304 | + </junitlauncher> |
| 305 | + <fail if="protocol.integration.tests.failed">Protocol integration tests failed!</fail> |
| 306 | + </target> |
| 307 | + |
280 | 308 | <!-- target: resolve ================================================= --> |
281 | 309 | <target name="resolve-default" depends="clean-lib" description="resolve and retrieve dependencies with ivy"> |
282 | 310 | <ivy:resolve file="ivy.xml" conf="default" log="download-only"/> |
|
0 commit comments