Skip to content

Commit 7904d46

Browse files
authored
Merge pull request #101 from evolvedbinary/6.x.x/hotfix/surefire-tests
[6.x.x] Ensure that all tests and integration tests run in CI
2 parents 35db9dd + d44b98d commit 7904d46

File tree

136 files changed

+3521
-1639
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+3521
-1639
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,12 +530,13 @@ jobs:
530530
else
531531
export JAVA_TOOL_OPTIONS="<< pipeline.parameters.java_tool_options >>"
532532
fi
533-
$MAVEN_BIN test -Dappbundler.skip=true -Ddocker=false -P !mac-dmg-on-mac,!codesign-mac-app,!codesign-mac-dmg,!mac-dmg-on-unix,!installer,!concurrency-stress-tests,!micro-benchmarks,skip-build-dist-archives
533+
$MAVEN_BIN test integration-test -Dappbundler.skip=true -Ddocker=false -P !mac-dmg-on-mac,!codesign-mac-app,!codesign-mac-dmg,!mac-dmg-on-unix,!installer,!concurrency-stress-tests,!micro-benchmarks,skip-build-dist-archives
534534
- run:
535535
name: Save test results
536536
command: |
537537
mkdir -p ~/test-results/junit/
538538
/usr/bin/find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/test-results/junit/ \;
539+
/usr/bin/find . -type f -regex ".*/target/failsafe-reports/.*xml" -exec cp {} ~/test-results/junit/ \;
539540
when: always
540541
- store_test_results:
541542
path: ~/test-results

build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if "%TARGET%"=="quick" (
9595
) else if "%TARGET%"=="test" (
9696
set "CMD=%BASE_CMD% clean test -Ddependency-check.skip=true"
9797
) else if "%TARGET%"=="site" (
98-
set "CMD=%BASE_CMD% clean test -Ddependency-check.skip=true"
98+
set "CMD=%BASE_CMD% clean verify site -Ddependency-check.skip=true"
9999
) else if "%TARGET%"=="license-check" (
100100
set "CMD=%BASE_CMD% license:check"
101101
) else if "%TARGET%"=="license-format" (

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ if [ "${TARGET}" == "test" ]; then
141141
fi
142142

143143
if [ "${TARGET}" == "site" ]; then
144-
CMD="${BASE_CMD} clean site -Ddependency-check.skip=true"
144+
CMD="${BASE_CMD} clean verify site -Ddependency-check.skip=true"
145145
$CMD
146146
exit 0;
147147
fi
@@ -171,4 +171,4 @@ if [ "${TARGET}" == "dependency-security-check" ]; then
171171
fi
172172

173173
print-useage
174-
exit 0;
174+
exit 0;

elemental-parent/pom.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,10 @@
413413
<java.locale.providers>JRE,CLDR,SPI</java.locale.providers>
414414
<log4j.configurationFile>${project.build.testOutputDirectory}/log4j2.xml</log4j.configurationFile>
415415
</systemPropertyVariables>
416+
<includes>
417+
<include>**/*Test.java</include>
418+
<include>**/*Tests.java</include>
419+
</includes>
416420
</configuration>
417421
</plugin>
418422
<plugin>
@@ -424,6 +428,11 @@
424428
<groupId>org.apache.maven.plugins</groupId>
425429
<artifactId>maven-failsafe-plugin</artifactId>
426430
<version>3.5.3</version>
431+
<configuration>
432+
<includes>
433+
<include>**/*IT.java</include>
434+
</includes>
435+
</configuration>
427436
</plugin>
428437
<plugin>
429438
<groupId>com.github.hazendaz.maven</groupId>
@@ -528,6 +537,26 @@
528537
<groupId>org.apache.maven.plugins</groupId>
529538
<artifactId>maven-surefire-plugin</artifactId>
530539
</plugin>
540+
<plugin>
541+
<groupId>org.apache.maven.plugins</groupId>
542+
<artifactId>maven-failsafe-plugin</artifactId>
543+
<executions>
544+
<execution>
545+
<id>integration-test</id>
546+
<phase>integration-test</phase>
547+
<goals>
548+
<goal>integration-test</goal>
549+
</goals>
550+
</execution>
551+
<execution>
552+
<id>verify</id>
553+
<phase>verify</phase>
554+
<goals>
555+
<goal>verify</goal>
556+
</goals>
557+
</execution>
558+
</executions>
559+
</plugin>
531560
<plugin>
532561
<groupId>org.apache.maven.plugins</groupId>
533562
<artifactId>maven-release-plugin</artifactId>

exist-ant/src/test/resources/log4j2.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,15 @@
231231
<AppenderRef ref="elemental.scheduler"/>
232232
</Logger>
233233

234-
<Logger name="org.exist.storage.SystemTask" additivity="false" level="debug">
234+
<Logger name="org.exist.storage.SystemTask" additivity="false" level="info">
235235
<AppenderRef ref="elemental.scheduler"/>
236236
</Logger>
237237

238238
<!-- expath pkg repo -->
239-
<Logger name="org.expath.pkg" additivity="false" level="trace">
239+
<Logger name="org.expath.pkg" additivity="false" level="info">
240240
<AppenderRef ref="expath.repo"/>
241241
</Logger>
242-
<Logger name="org.exist.repo" additivity="false" level="trace">
242+
<Logger name="org.exist.repo" additivity="false" level="info">
243243
<AppenderRef ref="expath.repo"/>
244244
</Logger>
245245
<Logger name="org.exist.launcher" additivity="false" level="warn">

0 commit comments

Comments
 (0)