Skip to content

Feature/82 increase unit test coverage#83

Draft
miroslavpojer wants to merge 7 commits intomasterfrom
feature/82-Increase-unit-test-coverage
Draft

Feature/82 increase unit test coverage#83
miroslavpojer wants to merge 7 commits intomasterfrom
feature/82-Increase-unit-test-coverage

Conversation

@miroslavpojer
Copy link
Copy Markdown
Collaborator

Overview

Increases unit-test coverage across several core classes by adding UnitTests suites that mock JDBC at the boundary, expanding JMF filter rules for compiler-generated methods, and documenting the JMF decision process.

New test files cover DBTestSuite, DBFunction, QueryResultRow, Params, QueryParamType, QueryParamValue, and SnakeCaseNaming. A reusable RecordingPreparedStatement JDBC mock is added as a shared test helper. The database-persist.properties resource supports integration tests that commit rather than roll back. jmf-rules.txt is significantly extended.

Release Notes

  • feat: add unit tests for DBFunction, QueryResultRow, Params, DBTestSuite, QueryParamType, QueryParamValue, and SnakeCaseNaming without requiring a live DB
  • feat: introduce RecordingPreparedStatement shared JDBC mock for reuse across unit test suites
  • feat: add database-persist.properties test resource for integration tests that persist DB state
  • chore: extend jmf-rules.txt with compiler-generated method rules (synthetics, case-class boilerplate, value-class extensions)

Related

Closes #82

…ultRow

- Introduced `database-persist.properties` for test database configuration.
- Added `DBFunctionUnitTests` to validate the behavior of DBFunction with named and positioned parameters.
- Created `QueryResultRowUnitTests` to test the functionality of QueryResultRow, including handling of various SQL types and conversion to case classes.
- Implemented `ParamsUnitTests` to ensure correct behavior of named and ordered parameters.
- Developed `RecordingPreparedStatement` to facilitate testing of parameter assignments without a real database.
- Added `QueryParamTypeUnitTests` and `QueryParamValueUnitTests` to verify the correct assignment of various parameter types to the prepared statement.
@miroslavpojer miroslavpojer self-assigned this Apr 14, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 14, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: eb02ac4a-61b1-4057-b3a3-0d78bc32948f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/82-Increase-unit-test-coverage

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

Increase unit test coverage

1 participant