Skip to content

Commit b5a805f

Browse files
authored
Merge pull request #100 from evolvedbinary/7.x.x/hotfix/surefire-tests
[7.x.x] Ensure that all tests and integration tests run in CI
2 parents 225ab4a + 1ab86b8 commit b5a805f

File tree

138 files changed

+3525
-1625
lines changed

Some content is hidden

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

138 files changed

+3525
-1625
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,12 +527,13 @@ jobs:
527527
else
528528
export JAVA_TOOL_OPTIONS="<< pipeline.parameters.java_tool_options >>"
529529
fi
530-
$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
530+
$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
531531
- run:
532532
name: Save test results
533533
command: |
534534
mkdir -p ~/test-results/junit/
535535
/usr/bin/find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/test-results/junit/ \;
536+
/usr/bin/find . -type f -regex ".*/target/failsafe-reports/.*xml" -exec cp {} ~/test-results/junit/ \;
536537
when: always
537538
- store_test_results:
538539
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
@@ -420,6 +420,10 @@
420420
<java.locale.providers>JRE,CLDR,SPI</java.locale.providers>
421421
<log4j.configurationFile>${project.build.testOutputDirectory}/log4j2.xml</log4j.configurationFile>
422422
</systemPropertyVariables>
423+
<includes>
424+
<include>**/*Test.java</include>
425+
<include>**/*Tests.java</include>
426+
</includes>
423427
</configuration>
424428
</plugin>
425429
<plugin>
@@ -431,6 +435,11 @@
431435
<groupId>org.apache.maven.plugins</groupId>
432436
<artifactId>maven-failsafe-plugin</artifactId>
433437
<version>3.5.3</version>
438+
<configuration>
439+
<includes>
440+
<include>**/*IT.java</include>
441+
</includes>
442+
</configuration>
434443
</plugin>
435444
<plugin>
436445
<groupId>com.github.hazendaz.maven</groupId>
@@ -541,6 +550,26 @@
541550
<groupId>org.apache.maven.plugins</groupId>
542551
<artifactId>maven-surefire-plugin</artifactId>
543552
</plugin>
553+
<plugin>
554+
<groupId>org.apache.maven.plugins</groupId>
555+
<artifactId>maven-failsafe-plugin</artifactId>
556+
<executions>
557+
<execution>
558+
<id>integration-test</id>
559+
<phase>integration-test</phase>
560+
<goals>
561+
<goal>integration-test</goal>
562+
</goals>
563+
</execution>
564+
<execution>
565+
<id>verify</id>
566+
<phase>verify</phase>
567+
<goals>
568+
<goal>verify</goal>
569+
</goals>
570+
</execution>
571+
</executions>
572+
</plugin>
544573
<plugin>
545574
<groupId>org.apache.maven.plugins</groupId>
546575
<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
@@ -246,15 +246,15 @@
246246
<AppenderRef ref="elemental.scheduler"/>
247247
</Logger>
248248

249-
<Logger name="org.exist.storage.SystemTask" additivity="false" level="debug">
249+
<Logger name="org.exist.storage.SystemTask" additivity="false" level="info">
250250
<AppenderRef ref="elemental.scheduler"/>
251251
</Logger>
252252

253253
<!-- expath pkg repo -->
254-
<Logger name="org.expath.pkg" additivity="false" level="trace">
254+
<Logger name="org.expath.pkg" additivity="false" level="info">
255255
<AppenderRef ref="expath.repo"/>
256256
</Logger>
257-
<Logger name="org.exist.repo" additivity="false" level="trace">
257+
<Logger name="org.exist.repo" additivity="false" level="info">
258258
<AppenderRef ref="expath.repo"/>
259259
</Logger>
260260
<Logger name="org.exist.launcher" additivity="false" level="warn">

0 commit comments

Comments
 (0)