Skip to content

Rename tests/DependencyModules.Tests to tests/DependencyModules.xUnit.Tests - #144

Merged
ipjohnson merged 1 commit into
mainfrom
agent/stp-vgdm-cleanup
Nov 27, 2026
Merged

ipjohnson merged 1 commit into
mainfrom
agent/stp-vgdm-cleanup

Conversation

@ipjohnson

Copy link
Copy Markdown
Owner

What changed

  • Renamed the old xUnit test project, its folder and its solution entry to tests/DependencyModules.xUnit.Tests. Updated the paths in scripts/test-xunit.sh and scripts/coverage.sh. The workflows call only these scripts, so they need no change.
  • Removed what the remaining tests do not use from the project: the linked tests/DependencyModules.Specs/Infrastructure harness, the snapshot content and SnapshotDirectory attribute, PublicApiGenerator, the Roslyn packages, and the references to DependencyModules.CodeFixes, Moq and FakeItEasy. The source generator is now referenced as an analyzer only, like in integ-tests.
  • Kept the net8.0 target. DependencyModules.xUnit, DependencyModules.xUnit4 and DependencyModules.NUnit ship a net8.0 build, and this project is the only unit-test run of that build.
  • Moved no tests. Each remaining file needs the xUnit runner because it tests an integration: xUnitTests call the xunit.v3 extensibility types, NUnitTests drive DependencyModules.NUnit, and TestingTests/TestContainerSourceTests uses [ModuleTest] from DependencyModules.xUnit.
  • CONTRIBUTING.md has a table of the five test projects with their runner, target frameworks and what they test. It also says where a new test goes, why the integration tests stay on xUnit, and how to run each suite.
  • CHANGELOG.md has an Unreleased entry for the split.
  • Updated the comments in Snapshot.cs and Require.cs, which still described the harness as compiled into two projects.

Why

After the earlier moves (#136 to #140), the old project holds only the tests of the xUnit and NUnit integrations. The new name says why it is still on xUnit.

How it was tested

  • ! grep -rqE '\[(Fact|Theory)\b|Assert\.' tests/DependencyModules.Specs --include='*.cs' exits 0.
  • dotnet csharpier check . passes, and dotnet build DependencyModules.sln --configuration Release succeeds.
  • ./scripts/coverage.sh 85 passes with 92.9% line coverage. DependencyModules.xUnit.Tests passes 72 tests on net8.0 and 72 on net10.0. SutProject.Tests passes 174, SutProject.NUnitTests 46, WebApiApp.Tests 2 on each framework, and DependencyModules.Specs passes 1150.
  • ./scripts/test-xunit.sh 4 passes: DependencyModules.xUnit.Tests 73 on each framework, SutProject.Tests 174, WebApiApp.Tests 2, and DependencyModules.Specs 1150.
  • I did not run scripts/verify-packages.sh, because no package changed.

🤖 Generated with Claude Code


Opened by Agent Driver for step stp-vgdm-cleanup of Task tsk-verificationglue.

….Tests

The project now holds only the tests of the xUnit and NUnit integrations, which need the
xUnit runner. Drop the references and the shared harness link that its remaining tests no
longer use, and describe the split of the test suites in CONTRIBUTING.md and CHANGELOG.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ipjohnson
ipjohnson merged commit 6701cc9 into main Nov 27, 2026
2 checks passed
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