Skip to content

Add test class to verify feature support for latest server versions (#1820)#2036

Open
yykkibbb wants to merge 1 commit intoPomeloFoundation:mainfrom
yykkibbb:fix/issue-1820-server-version-support-test
Open

Add test class to verify feature support for latest server versions (#1820)#2036
yykkibbb wants to merge 1 commit intoPomeloFoundation:mainfrom
yykkibbb:fix/issue-1820-server-version-support-test

Conversation

@yykkibbb
Copy link

@yykkibbb yykkibbb commented Feb 18, 2026

FIxes #1820

  • Add ServerVersionSupportTest in test/EFCore.MySql.Tests/Infrastructure/ that asserts all ServerVersionSupport feature flags for the latest supported MySQL (8.4.3) and MariaDB (11.6.2) versions.
  • Each test method asserts every property — Assert.True for currently supported features and Assert.False for currently unsupported features.
  • When a feature flag's return value changes (e.g., a previously unsupported feature gets version-gated support), the test will fail and prompt the developer to review the change.

Note: This is a unit test approach that validates our code's behavior against expected values. It does not connect to a live database to verify engine-level capabilities. If a functional test approach is preferred, I'm happy to adjust.

Test plan

  • dotnet test test/EFCore.MySql.Tests --filter "FullyQualifiedName~ServerVersionSupportTest" passes (2 tests)

…omeloFoundation#1820)

   Add ServerVersionSupportTest that asserts all feature flags for the latest
   supported MySQL and MariaDB versions, so that any change to feature support
   is detected during review.
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.

Add test class to ensure that version specific features have still not been implemented yet

1 participant