Skip to content

Conversation

@nakamura-to
Copy link
Member

@nakamura-to nakamura-to commented Jun 15, 2025

Summary

  • Add test generation functionality to automatically create JUnit 5 tests for all generated DAO classes
  • Implement drop script support for proper test setup/teardown
  • Update SQL scripts with explicit IDs and identity restart for consistent test data

Test plan

  • Run ./gradlew generateAll to generate all DAOs, entities, SQL files, and tests
  • Run ./gradlew test to execute all generated tests
  • Verify that all 200+ DAO test classes are created and pass
  • Check that test setup/teardown works correctly with create/drop scripts
  • Confirm that aggregate strategy tests properly load Employee-Department associations

🤖 Generated with Claude Code

- Add generateTests task to create JUnit 5 tests for all generated DAOs
- Add drop script support to DAOs for test setup/teardown
- Update SQL scripts with explicit IDs and identity restart
- Include test file paths in .gitignore
- Update README to document test generation features
- Fix H2 database name consistency

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@nakamura-to nakamura-to merged commit 796393f into main Jun 15, 2025
1 check passed
@nakamura-to nakamura-to deleted the test/add-test-code branch June 15, 2025 02:11
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.

2 participants