Skip to content

test: consolidate named tests into the property suites - #287

Merged
magnusp merged 1 commit into
mainfrom
test/consolidate-property-covered-tests
Oct 31, 2026
Merged

magnusp merged 1 commit into
mainfrom
test/consolidate-property-covered-tests

Conversation

@magnusp

@magnusp magnusp commented Oct 31, 2026

Copy link
Copy Markdown
Owner

Description

The property pilot left several named tests that the generated suites now cover. Remove those and strengthen the generators where a named case was not yet modeled.

  • Hrana JSON: delete JacksonHranaJsonCodecTest and the duplicate decode example in DirectHranaJsonCodecTest. HranaJsonCodecPropertyTest already runs both codecs; it now also asserts the whole response (baton, cols, last_insert_rowid).
  • SqlScript: delete SqlScriptTest. The generator now includes empty, whitespace and comment-only statements, BEGIN/COMMIT, plus a property that an unterminated quote stays inside one statement.
  • getBoolean: remove two tests that were strict subsets of the parameterized storage-class case.

Net: -198 lines in the non-container unit lane (13,402 -> 13,204) and -11 tests.

Most of the remaining suite stays: it asserts wire-level protocol behavior and the Appendix B matrix, which properties cannot replace. The larger conversions (generated-key classifier, wire-level lifecycle model, Appendix B value matrix) are listed as follow-ups in docs/property-based-testing.md.

Type of Change

  • Refactoring / tooling / CI improvement

Checklist

  • My code follows the code style of this project (./mvnw spotless:check).
  • I have added tests that prove my fix is effective or that my feature works.
  • All new and existing tests passed (./mvnw clean verify).
  • I have updated documentation where appropriate.

Retire the example tests whose behavior the jetCheck suites already
check over generated input:

- Hrana JSON: the differential property exercises both codec
  implementations, and the decode example was identical in both codec
  tests. Strengthen the property to assert the whole response (baton,
  cols, last_insert_rowid), not just the first value.
- SqlScript: the script generator now includes empty, whitespace and
  comment-only statements, BEGIN/COMMIT, and unterminated quotes, so
  the named splitter examples add nothing.
- getBoolean: two tests were strict subsets of the parameterized
  storage-class case.

Net -198 lines in the unit lane (13402 -> 13204).
@magnusp
magnusp force-pushed the test/consolidate-property-covered-tests branch from e81ccb5 to 425d53b Compare October 31, 2026 17:41
@magnusp
magnusp merged commit dd34822 into main Oct 31, 2026
6 checks passed
@magnusp
magnusp deleted the test/consolidate-property-covered-tests branch October 31, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant