Skip to content

chore(test): remove unused xunit dependencies#306

Open
dbrattli wants to merge 1 commit into
mainfrom
chore/migrate-xunit-v3
Open

chore(test): remove unused xunit dependencies#306
dbrattli wants to merge 1 commit into
mainfrom
chore/migrate-xunit-v3

Conversation

@dbrattli
Copy link
Copy Markdown
Collaborator

Summary

  • xunit v2 is deprecated; investigating a v2→v3 migration revealed the packages are unused.
  • Test files use a custom Fable.Python.Testing.FactAttribute (defined at src/fable/Testing.fs:28) that Fable lowers to a test_ prefix for pytest discovery. No test file references Xunit.
  • The dotnet run --project test/ entry point in Main.fs already just returns 0 — .NET-side test discovery was a no-op regardless of which xunit version was installed.
  • Drops xunit, xunit.runner.visualstudio, and Microsoft.NET.Test.Sdk from paket.dependencies / test/paket.references / paket.lock. The Test group now only resolves FSharp.Core and Fable.Core.

Test plan

  • dotnet build test/ succeeds
  • dotnet run --project test/ exits 0 (unchanged behavior)
  • just test-python — all 556 pytest tests pass

Tests use a custom Fable.Python.Testing.FactAttribute that Fable lowers
to a pytest test_ prefix; no test file references Xunit. The .NET test
entry point was already a no-op returning 0. Drop xunit, xunit.runner.visualstudio,
and Microsoft.NET.Test.Sdk to clear the deprecation warning and remove
transitive bloat.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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