mirror of
https://github.com/google/gson.git
synced 2026-03-13 08:01:59 +08:00
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:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -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"
|
||||
|
||||
@@ -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'
|
||||
|
||||
6
pom.xml
6
pom.xml
@@ -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>
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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>
|
||||
@@ -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.
|
||||
|
||||
@@ -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>
|
||||
@@ -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.
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user