chore: xunit-v3 + test on aot #9

Merged
Superkooka merged 4 commits from chore/xunit-v3 into main 2026-11-18 22:06:25 +00:00
Owner
No description provided.
xunit.v3 brings Microsoft.Testing.Platform v2, which refuses the VSTest
mode of dotnet test on the .NET 10 SDK. global.json opts dotnet test into
MTP, and Microsoft.NET.Test.Sdk and xunit.runner.visualstudio go away.

Test projects are now executables. xUnit1051 is off: the tests call
synchronous code and a fake DeepL handler, so passing the test
cancellation token adds noise without effect. The Tui tests disable
parallelization through the v3 Parallelization attribute.

The Nix test check gets its own check phase: dotnet test under MTP takes
--project, rejects --logger, and needs the runtime identifier of the build
to find the test programs.
test: run the tests as Native AOT
Some checks failed
/ docs (push) Successful in 5s
/ format (push) Successful in 2m28s
/ aot (push) Successful in 4m30s
/ test (push) Has been cancelled
a0832f3446
dotnet test runs under JIT and doesn't reach what trimming removes. The
test projects now use xunit.v3.aot and set PublishAot: published, each
one is a Native AOT program that runs its tests. The test job of the CI
publishes and runs them with the SDK of global.json, with its own NuGet
cache, and the tests check of the flake does the same under Nix. The
format job now saves its NuGet cache, and the aot job keeps the binary.

xunit.v3.aot refuses a params parameter in a theory, so the theories
take arrays; the two that take only the command line read it from a
TheoryData. FakeDeepL builds its answer as a JsonObject instead of
serializing an anonymous type by reflection, and TestSupport sets
IsAotCompatible so the analyzers keep it that way.

The language add popup test stopped the loop before the popup ran the
close its work asked for, which the faster native loop made fail about
twice in five runs. It now waits for the work to end first.
ci: move the Nix checks to their own workflow
Some checks failed
/ format (push) Successful in 6s
/ docs (push) Successful in 6s
/ test (push) Successful in 5m50s
Nix / flake (push) Failing after 8m18s
b94d6072dd
The nix workflow checks that global.json names the SDK of flake.lock,
runs nix flake check and starts the binary. The flake check builds the
tests check too, so a stale nix/tests.deps.json now fails the CI: since
the tests left Nix, nothing in it read that lock.
fix(tui): keep the file and the language of a long dictionary path in sight
All checks were successful
/ docs (push) Successful in 4s
/ format (push) Successful in 2m0s
/ test (push) Successful in 6m12s
Nix / flake (push) Successful in 8m51s
62f2592bc7
The rows of the dictionary list in config user were cut at the right
edge, so a long path hid its file and its language. A row now shortens
the middle of its path to fit the width of the list, and the screen
fits the rows again when the layout changes that width.

The Nix sandbox builds under /nix/var/nix/builds/..., a temporary
folder long enough to make some paths wrap. The tests that looked for
a whole path on one line now read the screen without its wrapping, and
the list rows are checked whatever the row keeps of their path.
Superkooka changed title from chore/xunit-v3 to chore: xunit-v3 + test on aot 2026-11-18 22:05:54 +00:00
Superkooka deleted branch chore/xunit-v3 2026-11-18 22:06:25 +00:00
Superkooka referenced this pull request from a commit 2026-11-18 22:06:25 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Superkooka/CK3TranslationTool!9
No description provided.