Skip to content

Merge plugin tests into Npgsql.Tests - #6621

Merged
roji merged 1 commit into
mainfrom
roji-merge-plugin-tests
Jul 13, 2026
Merged

roji merged 1 commit into
mainfrom
roji-merge-plugin-tests

Conversation

@roji

@roji roji commented Jul 13, 2026

Copy link
Copy Markdown
Member

Supersedes #6614 for the plugin-test consolidation only.

  • moves the six plugin fixtures under test/Npgsql.Tests/Plugins
  • folds plugin project/package references into Npgsql.Tests
  • removes the obsolete plugin test project, solution entry, and friend-assembly declarations
  • uses explicit one-time setup/teardown for the two nonparallel DEBUG-global fixtures, including resetting cached global mappings after legacy NodaTime tests

This intentionally excludes the per-assembly/shared database work, temp-table changes, specification tests, and CI changes from #6614.

Validation:

  • Debug and Release builds of Npgsql.Tests
  • all moved plugin tests in Debug and Release
  • combined DEBUG mutable-global fixtures
  • broad Debug suite (excluding local authentication-configuration assumptions)

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 60e1995f-6c6b-4a21-aa24-d868168c49b6
Copilot AI review requested due to automatic review settings July 13, 2026 10:28
@roji
roji requested a review from vonzshik as a code owner July 13, 2026 10:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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/Plugins and updated namespaces accordingly.
  • Folded plugin project references into Npgsql.Tests and removed the now-obsolete Npgsql.PluginTests project and solution entry.
  • Updated friend-assembly (InternalsVisibleTo) declarations to target Npgsql.Tests where needed and removed the old Npgsql.PluginTests declarations.
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

@roji
roji enabled auto-merge (squash) July 13, 2026 10:44
@roji
roji merged commit 141c90c into main Jul 13, 2026
25 of 28 checks passed
@roji
roji deleted the roji-merge-plugin-tests branch July 13, 2026 10:47
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.

3 participants