Building
Requirements
- JDK 21 (the library is compiled with
--release 21) - Docker (for integration tests only — see below)
- No local Maven install needed — use the bundled wrapper
Running tests
Unit tests only
No Docker required.
.\mvnw.cmd test
Run one test class:
.\mvnw.cmd test -Dtest=ForeignKeyIndexAuditTest
Run one test method:
.\mvnw.cmd test -Dtest=ForeignKeyIndexAuditTest#covers_multiColumnFk_whenLeadingColumnsMatch
Docker and integration tests
Integration tests deliberately fail rather than skip when Docker is absent, so supported platforms are never
silently unverified. The H2 path inside CatalogAuditsIT is embedded and needs no Docker; the PostgreSQL,
MySQL, and MariaDB parameterizations do.
Overriding container images
The default images pin the documented version floors. Override per run to test against a different version:
.\mvnw.cmd clean verify -Ddatabaseaudits.it.postgresql.image=postgres:17-alpine
Available overrides:
databaseaudits.it.postgresql.imagedatabaseaudits.it.mysql.imagedatabaseaudits.it.mariadb.image

