Repository navigation
Merge plugin tests into Npgsql.Tests - #6621
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 60e1995f-6c6b-4a21-aa24-d868168c49b6
There was a problem hiding this comment.
Pull request overview
Consolidates the former Npgsql.PluginTests test suite into the main Npgsql.Tests assembly, simplifying the solution structure while preserving the plugin test coverage and isolating the few fixtures that mutate DEBUG-only globals.
Changes:
- Moved plugin test fixtures into
test/Npgsql.Tests/Pluginsand updated namespaces accordingly. - Folded plugin project references into
Npgsql.Testsand removed the now-obsoleteNpgsql.PluginTestsproject and solution entry. - Updated friend-assembly (
InternalsVisibleTo) declarations to targetNpgsql.Testswhere needed and removed the oldNpgsql.PluginTestsdeclarations.
Show a summary per file
| File | Description |
|---|---|
| test/Npgsql.Tests/Properties/AssemblyInfo.cs | Removes InternalsVisibleTo for the deleted Npgsql.PluginTests assembly. |
| test/Npgsql.Tests/Plugins/NodaTimeTests.cs | Moves fixture into Npgsql.Tests.Plugins namespace. |
| test/Npgsql.Tests/Plugins/NodaTimeInfinityTests.cs | Moves fixture into Npgsql.Tests.Plugins and switches to explicit one-time setup/teardown for DEBUG-global switch handling and data source lifetime. |
| test/Npgsql.Tests/Plugins/NetTopologySuiteTests.cs | Moves fixture into Npgsql.Tests.Plugins namespace. |
| test/Npgsql.Tests/Plugins/LegacyNodaTimeTests.cs | Moves fixture into Npgsql.Tests.Plugins and uses one-time setup/teardown with global mapping reset. |
| test/Npgsql.Tests/Plugins/JsonNetTests.cs | Moves fixture into Npgsql.Tests.Plugins namespace. |
| test/Npgsql.Tests/Plugins/GeoJSONTests.cs | Moves fixture into Npgsql.Tests.Plugins namespace. |
| test/Npgsql.Tests/Npgsql.Tests.csproj | Adds required plugin project references (and supporting package refs) to run plugin tests within Npgsql.Tests. |
| test/Npgsql.PluginTests/Npgsql.PluginTests.csproj | Removes obsolete plugin test project. |
| src/Npgsql/Properties/AssemblyInfo.cs | Removes InternalsVisibleTo for the deleted Npgsql.PluginTests assembly. |
| src/Npgsql.NodaTime/Properties/AssemblyInfo.cs | Retargets InternalsVisibleTo from Npgsql.PluginTests to Npgsql.Tests. |
| Npgsql.slnx | Removes the Npgsql.PluginTests project entry from the solution. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 12/12 changed files
- Comments generated: 0
- Review effort level: Low
vonzshik
approved these changes
Jul 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #6614 for the plugin-test consolidation only.
test/Npgsql.Tests/PluginsNpgsql.TestsThis intentionally excludes the per-assembly/shared database work, temp-table changes, specification tests, and CI changes from #6614.
Validation:
Npgsql.Tests