Repository navigation
Add Runner.RunDiscoveredAsync; port describe-only tests as written - #2489
Conversation
…ten (#2422) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ls2e237XAq9dQ22xQ7Rvs8
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ls2e237XAq9dQ22xQ7Rvs8
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 32 minutes. View limit details
Pre-merge checks:
|
…e fixtures Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ls2e237XAq9dQ22xQ7Rvs8
…d check the order Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ls2e237XAq9dQ22xQ7Rvs8
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ls2e237XAq9dQ22xQ7Rvs8
Closes #2422
What
The describe-only tests (NUnit, xUnit v3, TUnit) checked only discovery and
HostTestFilters.ExcludeAsync, under aPartial_name, because the port had no function that runs discovered tests and reports them as upstream'srunProjectdoes. This addsRunner.RunDiscoveredAsync, which applies the host's selection, reports each kept test as passed (with its title path) and the left-out ones as skipped, and turnsONLY_IN_CIinto exit code 2 with the error inrun.errors. The two tests now assert what upstream'sits assert (passed title paths, exit code 0 / 2,ONLY_IN_CIinrun.errors, no passed result), and thePartial_prefix is gone.Upstream parity
Verdict: faithful for what the port can run.
RunDiscoveredAsyncis .NET-only (the host's framework runs each test, so a body delegate stands in); it sits inRunner, upstream'srun/runner.tsowner. No othersrc/symbols added. Upstream'sdescribenames are the fixture class names here, so title paths readCheckoutFixture > Refunds > Refunds_a_card.Upstream tests → local
describe-only.test.ts› "runs the focused groups and a test.only beside them, and nothing else" →DescribeOnlyTests.Runs_the_focused_groups_and_a_test_only_beside_them_and_nothing_else(x3 hosts)DescribeOnlyTests.Is_refused_in_CI_with_ONLY_IN_CI(x3 hosts).NET-only symbol
Runner.RunDiscoveredAsync: upstream'sruncollects and runs files; a .NET host's framework runs the tests, so a body delegate (here invoking the fixture's method) stands in. Selection uses no filters, changed-since or last-failed (those have their own tests)..NET-only symbol (2)
RunOutcome.Document: the report'sreport.jsondocument, so a test can validate the schema (a typedReportdoes not round-trip to the wire).Not ported
Nothing. The tests call
ReportSchema.AssertValidReporton the run's report document (as upstream'sassertValidReport), check the passed titles in order, and also assert the skipped, unselected results with thenot focused by .onlyreason.Local: three host test projects pass on net10.0. No agent change, so no real-model run.
https://claude.ai/code/session_01Ls2e237XAq9dQ22xQ7Rvs8
Generated by Claude Code