Skip to content

chore(test): remove unused xunit dependencies#306

Merged
dbrattli merged 2 commits into
mainfrom
chore/migrate-xunit-v3
Jun 12, 2026
Merged

chore(test): remove unused xunit dependencies#306
dbrattli merged 2 commits 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

dbrattli and others added 2 commits May 28, 2026 21:40
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>
The native `dotnet run --project test/` path is a no-op (returns 0), so
there is nothing else to test. Collapse the three-way test/test-native/
test-python split into a single `test` recipe that compiles the F# tests
to Python and runs pytest. Update README and AGENTS docs accordingly.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dbrattli dbrattli merged commit c888574 into main Jun 12, 2026
2 checks passed
@dbrattli dbrattli deleted the chore/migrate-xunit-v3 branch June 12, 2026 19:27
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