Skip to content

Conversation

@duanemay
Copy link
Member

@duanemay duanemay commented Dec 2, 2025

Update ProfileSelectionExtension to use BeforeEachCallback for JUnit tests instead of BeforeTestExecutionCallback

MySqlDbMigrationIntegrationTest, HsqlDbMigrationIntegrationTest, PostgresDbMigrationIntegrationTest were all doing test setup even when the tests were skipped.

Copilot AI review requested due to automatic review settings December 2, 2025 20:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR optimizes test execution by preventing unnecessary test setup for skipped tests in database migration integration tests. The change moves profile-based test skipping to occur earlier in the JUnit lifecycle.

  • Changes ProfileSelectionExtension to use BeforeEachCallback instead of BeforeTestExecutionCallback
  • Profile checking now happens before @BeforeEach methods execute, avoiding expensive setup operations like database cleaning when tests are skipped

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-project-automation github-project-automation bot moved this from Inbox to Pending Merge | Prioritized in Foundational Infrastructure Working Group Dec 4, 2025
@duanemay duanemay merged commit 93c7678 into develop Dec 4, 2025
32 checks passed
@duanemay duanemay deleted the disabledTestDatabaseSetup branch December 4, 2025 15:12
@github-project-automation github-project-automation bot moved this from Pending Merge | Prioritized to Done in Foundational Infrastructure Working Group Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants