routecontract
Checks changes in ShardingSphere-JDBC execution scope even when query results stay the same.
What does it do?
After checking query results in an existing integration test, developers wrap the target operation to inspect the number of JDBC execution attempts and the data sources accessed. For example, if a query returns the same rows but runs against 2 data sources, the test fails when it exceeds the configured allowance. It can optionally compare against reviewed execution history and produce Markdown or JSON reports. Supported tests are synchronous, non-batch PreparedStatement tests with Java 17·21 and ShardingSphere-JDBC 5.5.3.
Key features
- Verifies the number of JDBC execution attempts and the data sources used.
- Fails JUnit, Maven, or Gradle tests when the allowed count is exceeded.
- Optionally compares execution history and creates Markdown or JSON reports.
- Supports synchronous, non-batch PreparedStatement tests with Java 17·21 and ShardingSphere-JDBC 5.5.3.