Repository navigation
Port describe.fail registration form and COLLECTION_ERROR for fail on serial groups (upstream #1925) - #2151
Merged
Conversation
…_ERROR for fail on serial groups (upstream #1925) Closes #2111 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ls2e23PdHSJ5LMzn84z25u
Contributor
|
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 13 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
…l-forms # Conflicts: # docs-site/src/content/docs/testing-frameworks/nunit.mdx # skills/e2e-dotnet/SKILL.md # skills/e2e-dotnet/references/writing-tests-nunit.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Ports the rest of upstream e2e-inc/e2e#1925 (
c30354f): thedescribe.fail(title, fn)registration form and the registry's collection-time checks onfail.[DescribeFail](NUnit, class-level) marks every test of a fixture expected to fail with the default reason; it takes no reason, asdescribe.failtakes nofailoption. A reason is[Property("E2E.Fail", reason)], as before.COLLECTION_ERROR): afailthat is not a reason string (got 1),failon or inside a[Serial]fixture, and a[Serial]fixture inside a marked fixture. An unfiltered run does not collect, so the member refuses itself with the same error (wasINVALID_ARGUMENT).test.Fail(...)outside-a-body message now names[DescribeFail], as upstream's namesdescribe.fail.Value: tests are marked as groups the way upstream users write them, and misuse fails early, not at test time.
Closes #2111
Upstream parity
Verdict: complete, with the justified exceptions below. Upstream: tester-army/e2e
c30354f.describe.fail/describe(..., {fail})inregistry.tsDescribeFailAttribute,[Property("E2E.Fail")](existing)validateFailOptionExpectedFailureMarks.FailOptionErrorvalidateDescribeOptionsExpectedFailureMarks.SerialFailError,RunSelection.FailErrorOf, thrown inHostTestFilters.CollectmarkRunningTestExpectedToFailmessageresolveOptionsfail mergereference/test.mdx,writing-tests.md)nunit.mdx,writing-tests-nunit.md,SKILL.md,COMPATIBILITY.md, API page forDescribeFailAttribute(written by hand:npm run apineeds the net11 SDK, absent here)Port-only symbols:
DescribeFailAttribute(.NET attribute shape for a call form),DiscoveredTest.FailErrorandRunSelection.FailErrorOf(the port has no collector; discovery is the registration).Upstream tests and local match
expected-failure.test.ts"marks every test in a describe.fail group, each judged on its own":TestFailTests.Marks_every_test_in_a_describe_fail_group_each_judged_on_its_own, fixture now uses[DescribeFail].registry.test.ts"marks a group by describe.fail(title, fn) or the fail option, and checks both":Partial_marks_a_group_...(adds the bad-value check).registry.test.ts"refuses fail on, inside, or around a serial group":Partial_refuses_fail_on_inside_or_around_a_serial_group(collection and unfiltered run).registry.test.ts"rejects test.fail(condition) outside a test body": message assertion added inTestFailTests.select.test.tsresolveOptions fail test:ResolveOptionsTests(unchanged, already ported).sdk-types.ts: type-level checks, no counterpart.Not ported
describe.failnested inside a serial group (nested classes are not members of the enclosing serial group);fail: falseas a value;describe.failgiven options/tags/hidden keys and the "takes no fail option" error (the attribute takes none). All need a collector the port lacks; recorded in COMPATIBILITY.md. No separate issue: they have no .NET form to implement.failmark at all (pre-existing).Testing
Registration tests pass under net10. Tests needing a Chromium install (
TestFailTestsverdict tests) cannot run in this sandbox; CI runs them. No agent behavior changed, so no real-model run.Generated by Claude Code