Skip to content

Parameterize tests that loop over DbScopes - #7994

Open
labkey-tchad wants to merge 1 commit into
fb_externalDataSourceTestingfrom
fb_externalDataSourceTesting_cleanup
Open

Parameterize tests that loop over DbScopes#7994
labkey-tchad wants to merge 1 commit into
fb_externalDataSourceTestingfrom
fb_externalDataSourceTesting_cleanup

Conversation

@labkey-tchad

Copy link
Copy Markdown
Member

DialectTestCase, GroupConcatTestCase, and Method.TestCase each looped over every DbScope in one @test method, so a failure on one scope aborted every scope after it; each now runs as an independent JUnit case per scope via a shared JunitUtil.getDbScopesTestParameters() helper.

Split out LabKeyScopeDialectTestCase and Method.IsDistinctFromMethodTestCase for the test methods that never depended on the loop, since JUnit's Parameterized runner requires every test in the class to share the same constructor; registered both new classes in CoreModule/QueryModule.


Stack created with GitHub Stacks CLIGive Feedback 💬

@github-actions

Copy link
Copy Markdown

ERROR: A pull request from fb_externalDataSourceTesting_cleanup is expected to target develop, not fb_externalDataSourceTesting

DialectTestCase, GroupConcatTestCase, and Method.TestCase each looped over every DbScope in one @test method, so a failure on one scope aborted every scope after it; each now runs as an independent JUnit case per scope via a shared JunitUtil.getDbScopesTestParameters() helper.

Split out LabKeyScopeDialectTestCase and Method.IsDistinctFromMethodTestCase for the test methods that never depended on the loop, since JUnit's Parameterized runner requires every test in the class to share the same constructor; registered both new classes in CoreModule/QueryModule.
@labkey-tchad
labkey-tchad force-pushed the fb_externalDataSourceTesting_cleanup branch from e0cefa3 to 80fa6a1 Compare August 28, 2026 21:39
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