Skip to content

test: extract pgjdbc/testFixtures to testkit project#3666

Merged
vlsi merged 6 commits intopgjdbc:masterfrom
vlsi:testkit
Jun 17, 2025
Merged

test: extract pgjdbc/testFixtures to testkit project#3666
vlsi merged 6 commits intopgjdbc:masterfrom
vlsi:testkit

Conversation

@vlsi
Copy link
Member

@vlsi vlsi commented Jun 14, 2025

It enables using shadowed artifacts for benchmarks and osgi-test

@vlsi vlsi force-pushed the testkit branch 7 times, most recently from 81af3d6 to 0c971ff Compare June 15, 2025 19:30
@vlsi
Copy link
Member Author

vlsi commented Jun 15, 2025

Looks like this is ready. Now both osgi-test and benchmark modules consume the shaded artifact.

At the same time, as we move TestUtil-like classes to its own testkit/src/main module, we separate "test framework" from "@test class" code which is good as well.

@vlsi vlsi force-pushed the testkit branch 3 times, most recently from f98807b to 8f6bee2 Compare June 16, 2025 11:43
@vlsi vlsi changed the title test: extract pgjdbc/testFixtures to testfixtures test: extract pgjdbc/testFixtures to testkit project Jun 16, 2025
vlsi added 6 commits June 17, 2025 09:14
It enables using shadowed artifacts for benchmarks and osgi-test
… distribution

It allows developers to verify the source distribution with a single command.
…junit-platform-launcher, remove junit4

Previously, junit-platform-launcher was missing in the dependencies, so
the test execution failed.

We did not notice it as Fedora provided an older JUnit (~5.10) which
did not surface the error.
…ramework

Different projects might have different dependencies, so we can't have global stubs
as they might refer third-party classes.

The common stubs (e.g. for java.sql) can still be located under config/checkerframework.
Previously, the code was located under pgjdbc/src/test/..., and we do not
verify nullability annotations for test code.

Now the code locates under testkit/src/main, so the strict nullability verification
is in place.
@vlsi vlsi merged commit a2aeda5 into pgjdbc:master Jun 17, 2025
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments