Repository navigation
WIP: Add DependsOnFixture example to dependent tests guide - #1261
OsirisTerje wants to merge 4 commits into
Conversation
Adds a three-fixture dependency chain snippet and explains ordering, skipping, AllowFailure and the same-namespace requirement. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
The focused documentation changes have no identified blocking issues.
No open issues 🎉
What changed in this PR
Adds a practical fixture-dependency example to NUnit’s dependent tests guide.
Changes:
- Adds a three-fixture snippet covering seeding, reporting, and cleanup.
- Explains dependency ordering, skipping,
AllowFailure, and fixture restrictions.
| File | Description |
|---|---|
| docs/snippets/Snippets.NUnit/DependentFixtureExamples.cs | Demonstrates a three-fixture dependency chain. |
| docs/articles/nunit/writing-tests/dependent-tests.md | Includes the snippet and explains dependency behavior. |
Review effort: Balanced
The alpha contains the DependsOnFixture fixes from nunit/nunit#5483, so the DependentFixtures snippet now runs all four tests in order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.11.0" /> | ||
| <PackageReference Include="NUnit" Version="5.0.0" /> | ||
| <PackageReference Include="NUnit" Version="5.1.0-alpha.0.21" /> |
There was a problem hiding this comment.
(this may be your intention; just noting because it occurred to me)
There was a problem hiding this comment.
Yes, this is still WIP.
This should have worked in 5.0.0, so I think we need to push out a hotfix for that, so it would end up with 5.0.1.
We have advertised DependsOn* for 5.0, and it doesn't work there, so a hotfix could be the answer. The docs has to be corrected too when we have the final version number where it works.
@stevenaw @manfred-brands What do you think ?
There was a problem hiding this comment.
PS. Is it possible to see how the pages would look, or is that feature not working ?
There was a problem hiding this comment.
PS. Is it possible to see how the pages would look, or is that feature not working ?
Netlify preview was removed because it rarely worked as intended. See #1045
There was a problem hiding this comment.
PR preview links are back again 🎉 Just merged master into this branch, which hopefully should generate one
A test can only depend on a test in the same fixture; a single test in another fixture can not be targeted. A fixture dependency is always the whole fixture, and it must be in the same namespace. Added to the guide and to both reference pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
📖 Docs preview: Built from fc9af5a. This link always shows the latest build for this PR; the build for this exact commit is at https://b332bd68.nunit-docs.pages.dev. Previews are hosted on Cloudflare Pages, are not indexed by search engines, and are removed when the PR is closed. They omit the archived NUnit 2.x documentation (the |
Adds a three-fixture dependency chain snippet and explains ordering, skipping, AllowFailure and the same-namespace requirement.
Snippets currently prevented from compiling due to nunit/nunit#5478 and nunit/nunit#5479