Rename Maven integration test modules (#2691)

The new naming scheme `test-...` groups the modules in the file system and
the IDE and therefore hopefully makes it easier to quickly see which modules
are integration tests.
This commit is contained in:
Marcono1234
2024-06-01 03:00:39 +02:00
committed by GitHub
parent ce2129ea2a
commit 3e599c8fdb
39 changed files with 13 additions and 13 deletions

View File

@@ -45,9 +45,9 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: 'maven'
- name: Build and run tests
# Only run tests in `graal-native-image-test` (and implicitly build and run tests in `gson`),
# Only run tests in `test-graal-native-image` (and implicitly build and run tests in `gson`),
# everything else is covered already by regular build job above
run: mvn test --batch-mode --no-transfer-progress --activate-profiles native-image-test --projects graal-native-image-test --also-make
run: mvn test --batch-mode --no-transfer-progress --activate-profiles native-image-test --projects test-graal-native-image --also-make
verify-reproducible-build:
name: "Verify reproducible build"

View File

@@ -26,5 +26,5 @@ jobs:
- name: Check Android compatibility
run: |
# Run 'test' phase because plugin normally expects to be executed after tests have been compiled
# Have to skip 'jpms-test' module because it requires that full Gson JAR has been built
mvn --batch-mode --no-transfer-progress test animal-sniffer:check@check-android-compatibility -DskipTests --projects '!jpms-test'
# Have to skip 'test-jpms' module because it requires that full Gson JAR has been built
mvn --batch-mode --no-transfer-progress test animal-sniffer:check@check-android-compatibility -DskipTests --projects '!test-jpms'

View File

@@ -28,9 +28,9 @@
<modules>
<module>gson</module>
<module>jpms-test</module>
<module>graal-native-image-test</module>
<module>shrinker-test</module>
<module>test-jpms</module>
<module>test-graal-native-image</module>
<module>test-shrinker</module>
<module>extras</module>
<module>metrics</module>
<module>proto</module>

View File

@@ -1,4 +1,4 @@
# graal-native-image-test
# test-graal-native-image
This Maven module contains integration tests for using Gson in a GraalVM Native Image.

View File

@@ -21,7 +21,7 @@
<artifactId>gson-parent</artifactId>
<version>2.11.1-SNAPSHOT</version>
</parent>
<artifactId>graal-native-image-test</artifactId>
<artifactId>test-graal-native-image</artifactId>
<name>Test: GraalVM Native Image</name>
<properties>

View File

@@ -1,4 +1,4 @@
# jpms-test
# test-jpms
This Maven module contains tests to verify that Gson's `module-info.class` which is used by the Java Platform Module System (JPMS) works properly and can be used by other projects. The module declaration file `src/test/java/module-info.java` uses Gson's module.

View File

@@ -21,7 +21,7 @@
<artifactId>gson-parent</artifactId>
<version>2.11.1-SNAPSHOT</version>
</parent>
<artifactId>jpms-test</artifactId>
<artifactId>test-jpms</artifactId>
<name>Test: Java Platform Module System (JPMS)</name>
<properties>

View File

@@ -1,4 +1,4 @@
# shrinker-test
# test-shrinker
This Maven module contains integration tests which check the behavior of Gson when used in combination with code shrinking and obfuscation tools, such as ProGuard or R8.

View File

@@ -22,7 +22,7 @@
<artifactId>gson-parent</artifactId>
<version>2.11.1-SNAPSHOT</version>
</parent>
<artifactId>shrinker-test</artifactId>
<artifactId>test-shrinker</artifactId>
<name>Test: Code shrinking (ProGuard / R8)</name>
<properties>

View File