-
Notifications
You must be signed in to change notification settings - Fork 1.2k
test(storage): exclude jqwik tests on Java 8 #13846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -338,12 +338,6 @@ | |
| <artifactId>junit-vintage-engine</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>net.jqwik</groupId> | ||
| <artifactId>jqwik</artifactId> | ||
| <version>1.9.3</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.github.classgraph</groupId> | ||
| <artifactId>classgraph</artifactId> | ||
|
|
@@ -474,6 +468,60 @@ | |
| </build> | ||
|
|
||
| <profiles> | ||
| <profile> | ||
| <id>jqwik-tests</id> | ||
| <activation> | ||
| <jdk>[11,)</jdk> | ||
| </activation> | ||
| <dependencies> | ||
| <dependency> | ||
| <groupId>net.jqwik</groupId> | ||
| <artifactId>jqwik</artifactId> | ||
| <version>1.9.3</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| </dependencies> | ||
| </profile> | ||
| <!-- | ||
| Exclude Jqwik and its tests on Java 8 because Jqwik 1.9+ requires Java 11+. | ||
| Jqwik's reflection-based test scanning fails on Java 8 when JSpecify annotations are present. | ||
| Test coverage for these Jqwik property tests is still run and maintained on JDK 11+ matrix builds. | ||
| --> | ||
| <profile> | ||
| <id>exclude-jqwik-on-java8</id> | ||
| <activation> | ||
| <jdk>1.8</jdk> | ||
| </activation> | ||
| <build> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <executions> | ||
| <execution> | ||
| <id>default-testCompile</id> | ||
| <configuration> | ||
| <testExcludes> | ||
| <exclude>**/*PropertyTest.java</exclude> | ||
| <exclude>**/JqwikTest.java</exclude> | ||
| <exclude>**/jqwik/**</exclude> | ||
| <exclude>**/StorageV2ProtoUtilsTest.java</exclude> | ||
| <exclude>**/JsonUtilsTest.java</exclude> | ||
| <exclude>**/ChunkSegmenterTest.java</exclude> | ||
| <exclude>**/DefaultBufferedWritableByteChannelTest.java</exclude> | ||
| <exclude>**/MinFlushBufferedWritableByteChannelTest.java</exclude> | ||
| <exclude>**/DefaultBufferedReadableByteChannelTest.java</exclude> | ||
| <exclude>**/Crc32cValueTest.java</exclude> | ||
| <exclude>**/ITSyncingFileChannelTest.java</exclude> | ||
| <exclude>**/RewindableByteBufferContentTest.java</exclude> | ||
|
Comment on lines
+508
to
+516
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hardcoding individual test files in the POM's exclusion list is fragile and difficult to maintain. Additionally, if these files contain standard JUnit tests alongside jqwik property tests, excluding the entire file from compilation on Java 8 means we completely lose standard test coverage on Java 8. Recommendation
|
||
| </testExcludes> | ||
| </configuration> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
| </profile> | ||
| <profile> | ||
| <id>idea-jqwik</id> | ||
| <dependencies> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.